1 Reply Latest reply on Jun 25, 2015 6:42 AM by DiegoV_Intel

    writing to a text file

    conor100

      Hi there,

       

      If I have a string how would I write it to a text file on a galileo?

       

      Kind regards

      Conor

        • 1. Re: writing to a text file
          DiegoV_Intel

          Hello conor100,

           

          That will depend on which environment you are working on. For example, if you are working from shell, you can use the following command to write a value in a text file:

           

          echo "string_value" >> file.txt

           

          If you are working from the Arduino IDE, you can use the methods of the SD library. I recommend you to check the ReadWrite example or the Datalogger example. Both are located in the Arduino IDE under File>Examples>SD. You need a SD card to run the examples.

           

          Regards,

          Diego.