Thanks for the pointers 8^), y'all.
Lance
On Sep 13, 2005, at 8:02 PM, Adriaan van Os wrote:
Lance Boyle wrote:
"Official" Pascal for opening a file and associating a name with
it (e.g., a disk file) goes like this:
assign(aFile, FileNameString);
reset(aFile); {or rewrite, etc.}
Assi
Lance Boyle wrote:
"Official" Pascal for opening a file and associating a name with it
(e.g., a disk file) goes like this:
assign(aFile, FileNameString);
reset(aFile); {or rewrite, etc.}
Assign is not "official" Pascal but a non-standard Turbo/Borland/Delphi
Pascal extension.
All of the P
I usually just make a wrapper function, and keep it in a utility unit with some
other similarly useful stuff. Here's my code:
type reset_or_rewrite_enum_type = (resetit, rewriteit);
function open_file (var f : file; file_name : ansistring; whattodo :
reset_or_rewrite_enum_type) : boolean;