How can I read a text file that is being edited by another program in Java? -


so need able read .txt file being edited program. what's going on have program logging data sensor , storing info onto .txt file in real time. want able read .txt file , use info stored while other program continually logging new info. need know if possible , general pointer libraries or methods should use. much!!

you can read file not locked. on windows, files locked default. on linux, file not locked default.

in short, use linux if need this. if don't need special in terms of libraries.

if use windows, other program needs periodically close or release file can read it.


Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -