Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Perl >> Snippet

read a file and write it to a second file #2


open (SOURCE, "test.txt" )      # use single quotes if a backslash for the pathname
open (DEST, "test2.txt" )       # use single quotes if a backslash for the pathname
print DEST < SOURCE > ;
close (DEST)
close (SOURCE)