LWGShane Well-Known Member Licensed User Longtime User May 13, 2016 #1 I'm wondering what would it take to continuously read a JSON file and look for new objects with Unix Timestamps newer than the previous. Ex: B4X: { "unix_timestamp_1":{ }, "unix_timestamp_2":{ } } With new Unix Timestamps being added after X amount of time. Probably something to do with File.LastModified.
I'm wondering what would it take to continuously read a JSON file and look for new objects with Unix Timestamps newer than the previous. Ex: B4X: { "unix_timestamp_1":{ }, "unix_timestamp_2":{ } } With new Unix Timestamps being added after X amount of time. Probably something to do with File.LastModified.
Erel B4X founder Staff member Licensed User Longtime User May 15, 2016 #2 You cannot continuously read from a file. You can use a timer to check whether the file was modified since the last read and then read it again. Upvote 0
You cannot continuously read from a file. You can use a timer to check whether the file was modified since the last read and then read it again.
R Roycefer Well-Known Member Licensed User Longtime User May 15, 2016 #3 You can use the jFileWatcher library to receive _FileModified events. Upvote 0