I have been working with buffering a file on my local drive to parse and obtain certain data. For test purposes I was easily able to do it this way:
public s
If you want to replace the hard coded path with one that you are passing via the command line, you should just be able to pass it in as a String. Your code will not read:
...
File CP_file = new File(arg[0]); //Assuming that the path is the first argument
...
Be sure to quote the path on the CLI, especially if it contains white space or other special characters.