arduino sd card problem code

code write to sd card
if (myFile) {
Serial.print("Writing to test.txt...");
for(i=0;i<15;i++)
myFile.println(i);

// close the file:
myFile.close();
Serial.println("done.");

why result in photo

ibra27:
why result in photo

Upload the file 'test8.txt' as well.

ibra27:
code write to sd card
if (myFile) {
Serial.print("Writing to test.txt...");
for(i=0;i<15;i++)
myFile.println(i);

// close the file:
myFile.close();
Serial.println("done.");

why result in photo

Unknown, the snipped of code you posted is reflected:

Writing to text.txt...done.

but the rest of the serial monitor screen grab is unexplained.

You need to post the smallest complete program that exhibits this problem.

the text:

test8.txt:
13
13
13
13
13
13
13
13
13
51
10
52
10
50

just magically appeared due to little pixies.

Chuck.