Assuming a *nix system, and the existence of a real-world problem to be solved rather than a homework problem in a particular language:
head -1 file1 >/tmp/file.$$; cat file2 >>/tmp/file.$$; mv /tmp/file.$$ file2Aaron B.
Available for small or large Perl jobs; see my home node.
In reply to Re: Single line insert to the start of a file
by aaron_baugher
in thread Single line insert to the start of a file
by darklord_999
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |