Create txt file and check file if it exists.

At work, I had been working with creating the datalog.txt file itself. For some reasons that SD card will have datalog.txt made from Win.

Yes, I used SD formatter that I had downloaded as referred from the sticky thread.

After formatting the SD card with the SD formatter, I created empty datalog.txt afterward with the file manager.

the Cardinfo sketch checked and can see it.

Then I check with the Datalogger sketch, it could not see that file for some reasons.

I found a way around it. I used Files sketch instead to create a datalog.txt file in there. It works!

Then I went home and continue to work on this.

On my home computer, I checked Cardinfo to make sure that it can see the file.

It kept on saying:

Initializing SD card...initialization failed. Things to check:
* is a card inserted?
* is your wiring correct?
* did you change the chipSelect pin to match your shield or module?

I don't understand why. Then I used SD Formatter to format it and tried to create the datalog.txt the same way I did.

It came up with this:

Initializing SD card...initialization failed.

I tried this many times with no success.

Then out of luck, Cardinfo sketch will list no files then I tried Files sketch. It works as it show the result. Then I checked Cardinfo to make sure that it actually does have the file in there.

It failed again and again then it will list nothing. Then I tried Files again with no success.

Is the SD module or SD card broke?

Anyone had this kind of experience?

After posting the first post, I went back to figure out why this is happening as I am not giving up on this issue.

I tried to remove and create the datalog.txt and confirmed that it is actually working.

With CardInfo sketch with little change on the end to tell me of the "end of the listing" - it works and I got the result as I noticed that I need to push reset button on UNO card:

Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Could not find FAT16/FAT32 partition.
Make sure you've formatted the card
Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT32
Volume size (bytes): 3018850304
Volume size (Kbytes): 2948096
Volume size (Mbytes): 2879
Files found on the card (name, date and size in bytes):
DATALOG.TXT 2000-01-01 01:00:00 13164
End of Listing

Why do I need to push reset button to make it to work? USB connection issue or timing?

It turned out that it has to do with my computer. On my laptop, it works perfect every time. It seems that Arduino dislikes USB 3.0. My laptop does not have USB 3.0 at all. So thank for no feedback. Had to resolve the issue myself. Next time, I would appreciate all of the feedbacks, not just read and skip to next threads.

I dunno if it is just you or the group of people here. I think that I will stick with Raspberry Pi. Pity!!