"wwrite opens file for writingcreates the file if it does not exist "aappend opens file for appendingcreates the file if it does not exist example write data to file open " data helo world data close (listing write data to file [end of example read data from file to read to an existing fileyou must add the following parameter to the open(function"rread default value opens file for readingerror if the file does not exist example read data from file open data data close (listing read data from file [end of example logging data to file typically you want to write multiple data to thee assume you read some temperature data at regular intervals and then you want to save the temperature values to file example logging data to file