I need to know how to open a file, read the contents of the file, add a line of data to the end of the file then close the file.
The file in questions has three varibles: id, name, email.
Thanks, it worked! I had forgotten about the >> and > it was the problem.
Now that I have the file created, I need to take each line of data and seperate it out.
id =2
name = dan
email = dan@test.net
What is the best way to do it. I figured it had to do with split but I can't figure it out.
Bookmarks