I'm not a python developer, but actually have done this many times in C. So I can tell you this with certainty. This is done no different than it is done on any Linux system.
The point here is that you should go out and find any good python tutorial, that covers writing to a file, and follow it. On Tue, Apr 5, 2016 at 1:43 PM, John Baker <[email protected]> wrote: > I want to store a little data on the eMMC from my Python code. My program > is not getting errors when I try to write a very short data file but it > doesn't actually seem to write it as I cannot read it back. I am using > f = open('MyFile.txt', w) > > or > f = open('/home/debian/Desktop/MyFile.txt', w) > > or > f = open('MyFile.txt', r) > > or > f = open('/home/debian/Desktop/MyFile.txt', r) > > to open the file and am not getting any errors but Python is not finding > the file and I cannot find the file with a search from WinSCP. > > So how to create a data file and where does it go? > > Thanks, > John > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
