home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!sol.ctr.columbia.edu!ira.uka.de!ira.uka.de!chx400!urz.unibas.ch!minidis
- From: minidis@urz.unibas.ch ( Capt.J.T. Kirk )
- Newsgroups: comp.sys.atari.st
- Subject: Re: Reading file-date from GFA
- Message-ID: <1992Nov20.105843.42572@urz.unibas.ch>
- Date: 20 Nov 92 10:58:43 MET
- References: <1ehh0hINN6v6@golem.wcc.govt.nz>
- Organization: University of Basel, Switzerland
- Lines: 33
-
- In article <1ehh0hINN6v6@golem.wcc.govt.nz>, wells_s@kosmos.wcc.govt.nz writes:
- > Okay, someone suggested for my little Time & date setter & saver program,
- > that I store the time & date in the .PRG file's Time & Date-stamp. Doing
- > this is easy, I just 'TOUCH' the file. Reading it back in however, it
- > not as easy. How would I go about doing this??
- >
- > I could call list of the directory with 'FILES' searching for the
- > TDSS_1_2.PRG file, then storing the list in a string, then getting the
- > time & date from the string, and setting it - but is there a simpler
- > method (or, more accurately, a SHORTER method, as that way would increase
- > the filesize by almost 1k - and something as simple as this program should
- > not be too big!!)
-
- - How about using Assembler ? You can`t get it any shorter than with that!
-
- - Try reading the DTA, then you can read the date/time of the file
- out the DTA-structure.
-
- - Another simpler, faster way is to write a NAME.INF file. Okay, so you
- two files now, but I guess a prog like that will probably run
- in the AUTO folder, so what, you`ll never get to see that file than anyway.
-
- This way however you can output/input the date-time via get/put
- (input/output) fast and efficient. When using GFA-Basic, better
- use Gemdos (or was it Bios one should better use, when
- thinking of the new TOS versions?) commands, that way your prog is `cleaner`.
-
- --
- Alexander <minidis@urz.unibas.ch>
- ----------------------------------------------------------------
- -- Scotty, beam me up, there`s no intelligent life down here! --
- -- (Capt. J.T. Kirk, USS Enterprise) --
- ----------------------------------------------------------------
-