Hi,
I'm using a txt file to populate a datagrid in an iOS app. I would like to do some version control so a newer file will automatically be loaded. My question is, how do I get the date of a txt file or is there a better way to do this that from the date? Thanks for the help.
Getting the file date of a txt file
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Getting the file date of a txt file
Last edited by quailcreek on Mon Jan 11, 2016 7:21 am, edited 1 time in total.
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
Re: Getting the file date of a txt file
Hi,
Check out "long" in the dictionary, as it can be used with file commands. e.g.
A checksum or other hash might be more reliable than just timestamp.
Check out "long" in the dictionary, as it can be used with file commands. e.g.
Code: Select all
set the defaultfolder to "/"
put the detailed files
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: Getting the file date of a txt file
Thanks scrabbles. That's not going to work. I think Ill just put the text into flds in a stack and pull the text from there.
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Getting the file date of a txt file
Hi Tom, try the detailed files and then use the modified date - I use this value in various apps when syncing between local and remote copies is needed...
"...this is not the code you are looking for..."
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
Re: Getting the file date of a txt file
Thanks again Dave. I'll take a look at that.
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14