changing file contents using open function.
Moderator: Moderators
Re: changing file contents using open function.
No no, everyone always second guesses my answers, even then obviously correct ones.
cs : ee : realist
Re: changing file contents using open function.
ouch, deep inside...bin12 wrote:^
what im trying to say is that you didnt get my point. im sorry if your that sensitive.
it really does... XD
DARKest Ninja
Re: changing file contents using open function.
Then you didn't explain it well enough. I gathered that you want to open a file, clear the contents of that file, and write to it. That's what I showed you how to do. Unless you want to completely remove and rewrite the file, then you'd use this:bin12 wrote:^
nobody tells you're a noob, what im trying to say is that you didnt get my point. im sorry if your that sensitive.
Code: Select all
unlink($file);
open(FILE,">","$file");
cs : ee : realist