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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to