Home: Perl Programming Help: Beginner:
Saving files



FCesar
Deleted

Mar 14, 2001, 4:43 PM


Views: 312
Saving files

When I open a file to save data in it, data previously stored are deleted and new data are stored. The code is like this
open(FILE, "$pathtofile");
print FILE $data;
close(FILE);
How do I attach new data to previosly save data without delete it ?



Jasmine
Administrator / Moderator

Mar 14, 2001, 6:01 PM


Views: 310
Re: Saving files

How come when I open a file read-write it wipes it out?