Description Read a byte from the file. read() inherits from the Stream utility class. Syntax file.read() Parameters file: an instance of the File class (returned by SD.open()) Returns The next byte (or character), or -1 if none is available. See Also - available() - peek() - write() - Stream.read() Libraries Reference Home The text of […]
Description Get the size of the file. Syntax file.size() Parameters file: an instance of the File class (returned by SD.open()) Returns the size of the file in bytes (unsigned long) Libraries Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 […]
Description Seek to a new position in the file, which must be between 0 and the size of the file (inclusive). Syntax file.seek(pos) Parameters file: an instance of the File class (returned by SD.open()) pos: the position to which to seek (unsigned long) Returns true for success, false for failure (boolean) See Also - position() […]
Description Print data, followed by a carriage return and newline, 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.println() file.println(data) file.print(data, BASE) Parameters file: an instance of the […]
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, […]