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?

link|improve this question
feedback

closed as off topic by iglvzx, Sathya Feb 9 at 5:40

Questions on Super User are expected to generally relate to computer software or computer hardware, within the scope defined in the faq.

Browse other questions tagged or ask your own question.