Implement Cat (linux)
I want to:Implement cat as follows; by running java cat file1 file2 ? the content of the files in the file list will be written to the standard output.Anybody can help?
Google for java IO tutorial.Just read the files line by line with a BufferedReader, and as you read each line, write it out to stdout with System.out.println.Any reason you want this rather than just running cat file1 file2? Is it just to learn Java?
jverda at 2007-7-14 21:24:40 >
