Anonymous user
File input/output: Difference between revisions
→[[Perl]]
Line 176:
open INPUT, "<input.txt";
open OUTPUT, ">output.txt"; # One '>' overwrites file, Two '>>' appends to file.
while ( <INPUT> ) {
|
Line 176:
open INPUT, "<input.txt";
open OUTPUT, ">output.txt"; # One '>' overwrites file, Two '>>' appends to file.
while ( <INPUT> ) {
|