You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Py4A
how do you load a binary or text file? In normal python, If I have a file named 'test.txt' with the contents 'hello world' and I execute the following code from the same directory:
f = open("test.txt","r") print(f.readlines()) f.close()
I see text on the screen. How do I do this in py4a? I have some pickle files that I'd like access to. I can reformat them to text or some other binary format, but would this work?
David Liebman
unread,
Aug 11, 2015, 5:23:43 PM8/11/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Py4A
I've converted my pickle file to a text file, with entries separated by space characters. Now I have large text files. what do I do to read this kind of file? also, what folder in the python-for-android file structure do I put my text files?