I am Writing a java program to remove the comments in same java program. I am thinking of using a file reader. But I'm not sure whether it will work.
Because two process will be using the same file. But I think before executing the code, java file will make a .class file. So if I use a file reader to edit the java file. It should not give me error that another process is already using this file.
Am I thinking correct?