Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #765
| From | Martin <News03@avisoft.f9.co.uk> |
|---|---|
| Subject | OS_GBPB 9 - Read filenames from directory |
| Newsgroups | comp.sys.acorn.programmer |
| Date | 2011-09-25 17:04 +0100 |
| Message-ID | <5218550b41News03@avisoft.f9.co.uk> (permalink) |
| Organization | None |
The SWI OS_GBPB,9-12 can be used for reading a list of file names from a directory. The PRM page 2-70 makes no mention of the sequence in which the files are returned, so it must presumably be assumed that they will be in an indeterminate sequence. However, it appears that the sequence is normally filename in all cases I have been able to investigate, EXCEPT when using HostFS with VRPC, and the files are actually on a FAT (not NTFS) formatted disc. In this case I think that the sequence is the order in which the file was added to that directory. Incidentally, the command *Info <directory>.* appears to list files in the same order as given by GBPB. I write this note for two reasons: 1. I maintain a program (not written by me) which uses GBPB to read filenames AND it assumes a filename sequence. Indeed, it can go wrong if they are not in filename sequence! I am assuming that this is a problem with the program and not VRPC/HostFS, but before I change it I would be interested to hear from anyone who cares to comment on, correct, or add to my observations. 2. To warn others using OS_GBPB that a filename sequence should NOT be assumed! Martin -- Martin Avison Note that unfortunately this email address will become invalid without notice if (when) any spam is received.
Back to comp.sys.acorn.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
OS_GBPB 9 - Read filenames from directory Martin <News03@avisoft.f9.co.uk> - 2011-09-25 17:04 +0100
Re: OS_GBPB 9 - Read filenames from directory Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-09-25 20:18 +0200
Re: OS_GBPB 9 - Read filenames from directory Terminal Crazy <Terminal_Crazy@sand-hill.freeserve.co.uk> - 2011-09-25 20:14 +0100
Re: OS_GBPB 9 - Read filenames from directory jeff <jeffrey.a.doggett@gmail.com> - 2011-09-26 00:35 -0700
Re: OS_GBPB 9 - Read filenames from directory "Ste (news)" <steve@revi11.plus.com> - 2011-09-28 15:25 +0100
Re: OS_GBPB 9 - Read filenames from directory Vince M Hudd <vinceh@softrock.co.uk> - 2011-09-29 11:34 +0100
Re: OS_GBPB 9 - Read filenames from directory "Ste (news)" <steve@revi11.plus.com> - 2011-09-29 12:39 +0100
Re: OS_GBPB 9 - Read filenames from directory jgharston <jgh@arcade.demon.co.uk> - 2011-10-09 16:23 -0700
csiph-web