Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #307

Re: Reading Date Stamp of a file

From Chris Johnson <chrisjohnson+news@spamcop.net>
Subject Re: Reading Date Stamp of a file
Newsgroups comp.sys.acorn.programmer
Date 2011-05-18 15:23 +0100
Message-ID <51d5592e50chrisjohnson+news@spamcop.net> (permalink)
References <416aadd251.rogerarm@rogerarm.freeuk.com> <e07bb1d251.graham@durain.demon.co.uk> <d61650d551.rogerarm@rogerarm.freeuk.com>
Organization None

Show all headers | View raw


In article <d61650d551.rogerarm@rogerarm.freeuk.com>,
   Roger Darlington <rogerarm@freeuk.com> wrote:
> SYS"OS_File",17,filespec$ TO found%,,load%,exec%,length%

> PRINT ~load%, ~exec%, length%'

> NEXT

You should check the value of found% - if it is 0, object was not
found, 1 is a file, 2 is a dir, 3 is an image file.

If found% = 0, then you need to check the contents of filespec$. The
PRM states that the values of R2, R3, R4, R5 are corrupted if object
not found (found% = 0).

-- 
Chris Johnson

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-13 10:55 +0100
  Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-13 11:20 +0100
    Re: Reading Date Stamp of a file Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-05-14 03:10 +0200
  Re: Reading Date Stamp of a file Graham Pickles <graham@durain.demon.co.uk> - 2011-05-13 11:39 +0100
    Re: Reading Date Stamp of a file jgh@arcade.demon.co.uk (Jonathan Graham Harston) - 2011-05-14 00:35 +0100
    Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-18 13:44 +0100
      Re: Reading Date Stamp of a file Chris Johnson <chrisjohnson+news@spamcop.net> - 2011-05-18 15:23 +0100
        Re: Reading Date Stamp of a file Roger Darlington <rogerarm@freeuk.com> - 2011-05-19 09:30 +0100
          Re: Reading Date Stamp of a file druck <news@druck.org.uk> - 2011-05-19 21:14 +0100

csiph-web