Saving User Input Python HELP!
Go to solution
Solved by Nineshadow,
Either store it in your RAM (bad idea), or use actual files that are stored on your drive.
How to read :
import string file = open("test.txt", 'r') lineFromFile = f.readline( ) file.close( )
How to write :
import string file = open("test.txt", 'w') file.write("Write this to file\n") file.close( )

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now