I want to open .txt file in read only mode. How?My file is already exist

Dear Friends,I want to open .txt file in read only mode using java code. how ? please help me....file is stored in E drive. I want to open it and read it. it should not be modified by anyone. so it shoud be open in read only mode,Thanks Sandhya
[279 byte] By [sani@13021984a] at [2007-11-27 1:42:34]
# 1
File.setReadOnly
ChuckBinga at 2007-7-12 0:59:23 > top of Java-index,Java Essentials,Java Programming...
# 2
> file is stored in E drive. I want to open it and read> it. it should not be modified by anyone. so it shoud> be open in read only mode,No, if you open it in read only mode, it means you can't modify it.
-Kayaman-a at 2007-7-12 0:59:23 > top of Java-index,Java Essentials,Java Programming...