1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Adding position() function to File class and replacing FILE_TRUNCATE and FILE_APPEND with FILE_WRITE (SD library). Updating examples and keywords.txt accordingly.

This commit is contained in:
David A. Mellis
2010-12-22 15:52:09 -06:00
parent 5057d5b109
commit 4742739d6e
7 changed files with 18 additions and 9 deletions

View File

@ -39,7 +39,7 @@ void setup()
Serial.println("initialization done.");
// open a file:
myFile = SD.open("test.txt", FILE_TRUNCATE);
myFile = SD.open("test.txt", FILE_WRITE);
// if the file opened okay, write to it:
if (myFile) {