Arduino Forum

Using Arduino => Storage => Topic started by: s_premkumar999 on Dec 09, 2012, 04:16 pm

Title: Creating a new text file in SD card with aduino
Post by: s_premkumar999 on Dec 09, 2012, 04:16 pm
hai...
is it possible to create new file in the SD card with arduino?? i want to create new text files with a new file name. is it possible to do so?? if yes plzz help me....
Title: Re: Creating a new text file in SD card with aduino
Post by: PaulS on Dec 09, 2012, 04:19 pm
Quote
is it possible to create new file in the SD card with arduino??

Yes,, it is..

Quote
is it possible to do so??

Yes,, it is..

Quote
if yes plzz help me....

OK,,,, please is not spelled plzz....

The datalogger example in the SD library shows how to create a new file.
Title: Re: Creating a new text file in SD card with aduino
Post by: s_premkumar999 on Dec 10, 2012, 01:59 pm
sir, in that example we are only opening a file, not creating new file. I want to create new file in the SD card with arduino.
Title: Re: Creating a new text file in SD card with aduino
Post by: PaulS on Dec 10, 2012, 02:09 pm
If the file doesn't exist, it will be created, if the open() statement uses FILE_WRITE. If it uses other values, the file may not be created.
Title: Re: Creating a new text file in SD card with aduino
Post by: Khalid on Dec 19, 2012, 04:38 pm

OK,,,, please is not spelled plzz....

OK is spelled Okay? :smiley-mr-green: :smiley-mr-green: ]:D.. no pun intended...  :smiley-yell: