I want to make something , but I need to be able to read text in a .txt file.
the text are username's and passwords, they are in this format:
txt file :
username1|password1
username2|password2
username3|password3
....
How can I move the first line ( username1|password1 ) to another txt file and make the second line (username2|password2) the first line.
so it will be something like this
txt file: txt file 2:
username2|password2 username1|password1
username3|password3
...
and then I need to be able to split the username and password, so that I can use it to log in.
so that I get something like this:
$user = username1
$pass = password1
the text are username's and passwords, they are in this format:
txt file :
username1|password1
username2|password2
username3|password3
....
How can I move the first line ( username1|password1 ) to another txt file and make the second line (username2|password2) the first line.
so it will be something like this
txt file: txt file 2:
username2|password2 username1|password1
username3|password3
...
and then I need to be able to split the username and password, so that I can use it to log in.
so that I get something like this:
$user = username1
$pass = password1