A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Py help] Loop through file, once done restart.

1.1k views · started by Bman ·
#1
[Py help] Loop through file, once done restart.
Someone mild telling me how please?

I havn't quite figured it out yet.

Thanks :)
#2
Loop through a file : File ReadFilePython

f=open('/tmp/workfile', 'w')

for line in f:
print line,

f.close()


took around 2 seconds by using Google.com.
#3
Not what I ment xD
#4
Give an example. I don't understand what you want to do.
#5
Wants it to loop through a file. Think he's making a multi account program but using .txt files for it. So what it'll do it would like,
Start Here
Split Accounts Here
Do other Functions here
Back to top of loop and repeat.
#6
I have it done guys :)

Thanks for the help anyways :P