changing file contents using open function.
Moderator: Moderators
-
- Perl Monk
- Posts: 810
- Joined: 04 Apr 2008, 17:26
- Noob?: No
Re: changing file contents using open function.
No no, everyone always second guesses my answers, even then obviously correct ones.
cs : ee : realist
-
- Plain Yogurt
- Posts: 82
- Joined: 04 Apr 2008, 09:49
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
-
- Perl Monk
- Posts: 810
- Joined: 04 Apr 2008, 17:26
- Noob?: No
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