I dont suggest this method if you want pages to load fast.
This method of:
Opening
Copying
Changing Lines
Update File
Closing
Is quite slow, and your best off using a database, if you dont have access. Then i guess this is your only option.
However ive never really used the File Functions..
But im pretty sure if your textfile setting is
DateofBirth: blah etc
Your setting your txt file out wrong.
You should set it out like this
1|planetsim|not telling|0000-0000| etc
1 being the users ID
Then a new line for someone else.
Then just get it all into an array using explode();. That way you can just update the array. Without needing to copy it all. Not sure if its faster or slower than the method suggested.