[fpc-pascal] Assigning a file
L505
fpc505 at z505.com
Sat Oct 15 04:13:25 CEST 2005
Does assigning and then reseting a file require write permissions on Linux and Windows? I'm
getting ELnOutError access Denied when I try to assign a file. It works fine if I give the
file write permissions
program Project1;
{$mode objfpc}{$H+}
uses
SysUtils;
var
FileName: string;
TheFile: file of char;
begin
FileName:= 'test.txt' ; //a read only file in the directory
assign(TheFile, filename);
reset(TheFile);
readln;
end.
An unhandled exception occurred at $0805B42D : EInOutError : Access denied $0805B42D
$0804DCDE $0804842C
--
L505
http://z505.com
More information about the fpc-pascal
mailing list