Lab 0 |
Your job is to create a directory on csa2.bu.edu called lab0, save this file there, and then write a Java program (in the same directory) that reads in this file, and prints its contents to another file replacing all 'g' characters with 't'. |
Your program should run from the command line and take two arguments as input: the name of the input file, and the name of the output file. You can use the BufferedReader and BufferedWriter classes to read/write from/to files, you can see their documentation in the Java API. To figure out how to look at and change the characters of a String, you can consult the documentation of the String class. You may also use the Scanner class to read from a file, if you are more familiar with it. |
If you need help with Unix (the operating system that runs on the CSA network) you can look here. |