home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / atari / st / 16900 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  2.1 KB

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