Reading/Writing to text file with this method

I remember I used to have a code for a poll script that updated via an external text file. The contents of the text file was something like this:

123|12|15|xx|xx|xx|xx

And so on…

I know how to use the fopen(); fread(); fwrite(); functions, I just can not figure out how I changed (for example) the number 15 in that string. Was this something to do with an array?

Yes - look at the explode() and implode() functions

Aha! Those sounds extremely familiar! I will read up on those tonight.

Thanks!