Does using the FileReader method in java, makes the file read only or does it still have to be stated
FileReader file = new FileReader(args[0]);
BufferedReader buffread = new BufferedReader(file);
Is file read only or would I need to state after the above code that I only want file to be read only?
As the name specifies
FileReader, this object will be having only methods to read a file.For writing purposes we have
FileWriterhere.File object will be having only read only access to your file.