I have a text file called say "file.txt" and I'm writing a small PHP script to open the file and write stuff in it. Well, this first part works great, but not exactly how I want it. I need to remove the last 2 characters from the end of the file and then add what I need to the file for it to work. Can this be done with the trim function? If so, how should it be formatted? Thanks!
3/8/2006 2:57:05 PM
Look up:file_get_contents()substr()fopen/fputs/fclose
3/8/2006 3:18:54 PM