Need help editing/saving text files
View Single Post
12-13-2007, 10:12 PM
Join Date: Oct 2007
Location: Manchester, UK
I'm guessing you mean that you want to rewrite the file to have different values for each named constant?
if it was me i'd just truncate the exsiting file, then write to the file with the new constants
the 'w' places the file pointer at the beginning of the file and then truncates the file to zero length.
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
View Public Profile
Send a private message to sketchMedia
Visit sketchMedia's homepage!
Find More Posts by sketchMedia