giga Well-Known Member Licensed User Longtime User Sep 28, 2016 #1 I have used BufferedReader in Java to read an active file for changes via thread sleep, Can TextReader in B4J read an active file? Any ideas appreciated, Thanks for the help.
I have used BufferedReader in Java to read an active file for changes via thread sleep, Can TextReader in B4J read an active file? Any ideas appreciated, Thanks for the help.
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2016 #2 Do other processes write to the file? You can use a timer and check its size. If it increases then read it. You can also use this library: https://www.b4x.com/android/forum/threads/jfilewatcher-watch-system-file-events.56613/#content Upvote 0
Do other processes write to the file? You can use a timer and check its size. If it increases then read it. You can also use this library: https://www.b4x.com/android/forum/threads/jfilewatcher-watch-system-file-events.56613/#content
giga Well-Known Member Licensed User Longtime User Sep 29, 2016 #3 Thanks Erel, Yes when the program starts it creates a log file. While the program runs the users actions constantly write to the log file. I saw the library you referenced last year I haven't tried it yet. I will look into them both Upvote 0
Thanks Erel, Yes when the program starts it creates a log file. While the program runs the users actions constantly write to the log file. I saw the library you referenced last year I haven't tried it yet. I will look into them both