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( )
-
Topics
-
Stevenfred ·
Posted in Troubleshooting1 -
1
-
1
-
AngelaHornung ·
Posted in Console Gaming1 -
tanjackson ·
Posted in Storage Devices14 -
Sanedish ·
Posted in Graphics Cards2 -
14
-
Kapiba ·
Posted in New Builds and Planning4 -
1
-
0
-
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