Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 287: | Line 287: | ||
<source lang="javascript"> | <source lang="javascript"> | ||
f = file("/sdcard/myfile.txt") | f = file("/sdcard/myfile.txt"); // Open the myfile.txt file on the SD card. If the file does not exist, | ||
// it will be created. | // it will be created. | ||
f.writeLine("one"); // Write the string "one" as a line to the file | f.writeLine("one"); // Write the string "one" as a line to the file |