Check line starting with...
Posted: Thu Mar 04, 2004 7:00 am
i have a text file with multiple lines
when a user registers on my site, i want it to say if the username is in use or not
so, i was wondering if there was a piece of script that checks the start of A line in the text file (if a line in the text file starts with "whatever" then echo username already in use)
in the text file it says:
userpass = bobbob (Username: bob, Password:bob)
Dave
when a user registers on my site, i want it to say if the username is in use or not
so, i was wondering if there was a piece of script that checks the start of A line in the text file (if a line in the text file starts with "whatever" then echo username already in use)
in the text file it says:
userpass = bobbob (Username: bob, Password:bob)
Dave