>
> *Now after all that I've decided not to write anything to the eMMC,
> fearing that I'll cause some hiccup with the writes.*

*John*

Eh ? What do you mean ? You do realize that you can create a tmpfs
directory, that is located in memory, where you could then create files
that are also placed in memory ?


On Thu, Apr 7, 2016 at 4:59 PM, John Baker <[email protected]>
wrote:

> Now after all that I've decided not to write anything to the eMMC, fearing
> that I'll cause some hiccup with the writes.
> John
> johnbakeree.blogspot.com
>
> On Wednesday, April 6, 2016 at 11:24:18 AM UTC-7, John Baker wrote:
>>
>> Gosh, how did I miss that, that the mode is a string. Well it had to be
>> something simple like that. Quoting the w and r fixed the problem. Very
>> embarrassing.
>> :-[
>> Thanks,
>> John
>>
>> On 4/5/2016 7:21 PM, Dennis Lee Bieber wrote:
>> > On Tue, 5 Apr 2016 13:43:47 -0700 (PDT), John Baker
>> > <[email protected]> declaimed the
>> > following:
>> >
>> >> 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)
>> >>
>> >         First problem -- the mode is a string...
>> >
>> > 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.
>> >>
>> >         Did you ever write anything to the file, and did you close the
>> file?
>> >
>> >         f.write("Some junk\n")
>> >         f.close()
>> >
>> >
>> >         The first open should create the file in whatever your current
>> working
>> > directory is. Without connecting my BBB I can't confirm if the second
>> is a
>> > valid path.
>> >
>> >         And last -- how are you running it? SSH to a command line?
>> >
>>
>> --
> 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.

Reply via email to