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( )
-
Featured Topics
-
Topics
-
0
-
ECZxEMMA ·
Posted in Troubleshooting0 -
Fio ·
Posted in Networking1 -
Nervoussoup101 ·
Posted in New Builds and Planning0 -
2
-
7
-
1
-
pourint ·
Posted in Troubleshooting1 -
1
-
2
-
-
play_circle_filled
Latest From Linus Tech Tips:
I Will NOT Give You $250 for Your Broken Game - WAN Show April 26, 2024
-
play_circle_filled
Latest From ShortCircuit:
I tried 20 influencer foods, here are the best… and the worst…
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