http://qs1969.pair.com?node_id=428697


in reply to File Input and Output

i am running this code to create a new file.But i am simply getting a blank file after runing this code .I am using Ctrl+Z to terminate writing.I hope i m missing something .Can anyone point out my mistake ?
open FILE, ">keylogger.dat";
while(<>){
print FILE $_;
}
close FILE;

Replies are listed 'Best First'.
Re^2: File Input and Output
by barun (Novice) on Feb 08, 2005 at 08:08 UTC
    itś working with ctrl+d