Description Print data to the file, which must have been opened for writing. Prints numbers as a sequence of digits, each an ASCII character (e.g. the number 123 is sent as the three characters ‘1’, ‘2’, ‘3’). Syntax file.print(data) file.print(data, BASE) Parameters file: an instance of the File class (returned by SD.open()) data: the data […]
Description Get the current position within the file (i.e. the location to which the next byte will be read from or written to). Syntax file.position() Parameters file: an instance of the File class (returned by SD.open()) Returns the position within the file (unsigned long) See Also - seek() Libraries Reference Home The text of the […]
This is a guide to getting the 86Duino first working under Windows 8. For more information, see: Getting Started w/ 86Duino on Windows . (Back to Getting Started w/ 86Duino on Windows page) Getting-Started Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Description Read a byte from the file without advancing to the next one. That is, successive calls to peek() will return the same value, as will the next call to read(). peek() inherits from the Stream utility class. Syntax file.peek() Parameters file: an instance of the File class (returned by SD.open()) Returns The next byte […]
Description Ensures that any bytes written to the file are physically saved to the SD card. This is done automatically when the file is closed. flush() inherits from the Stream utility class. Syntax file.flush() Parameters file: an instance of the File class (returned by SD.open()) Returns none See Also - close() - Stream.flush() Libraries Reference […]
Description Close the file, and ensure that any data written to it is physically saved to the SD card. Syntax file.close() Parameters file: an instance of the File class (returned by SD.open()) Returns none See Also - SD: open() Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, […]
Description Check if there are any bytes available for reading from the file. available() inherits from the Stream utility class. Syntax file.available() Parameters file: an instance of the File class (returned by SD.open()) Returns the number of bytes available (int) See Also - read() - peek() - Stream.available() Libraries Reference Home The text of the […]
Description Remove a directory from the SD card. The directory must be empty. Syntax SD.rmdir(dir_name) Parameters dir_name: the name of the directory to remove, with sub-directories separated by forward-slashes, / Returns true if the removal of the directory succeeded, false if not. (if the directory didn’t exist, the return value is unspecified) See also - […]
Description Remove a file from the SD card. Syntax SD.remove(filename) Parameters filename: the name of the file to remove, which can include directories (delimited by forward-slashes, /) Returns true if the removal of the file succeeded, false if not. (if the file didn’t exist, the return value is unspecified) See also - rmdir() Libraries Reference […]
Description Opens a file on the SD card. If the file is opened for writing, it will be created if it doesn’t already exist (but the directory containing it must already exist). Syntax SD.open(filepath) SD.open(filepath, mode) Parameters filename: the name the file to open, which can include directories (delimited by forward slashes, /) – char […]