'allo - I was wondering how one would go about opening a file read-only and
shared?
I have a project here that is giving me IO Error 32's (process can't access
file because its in use by another process), but can't find anyway to open a
file with sharing enabled.
I've found the FileMode variable and am now opening read-only, but I see get
sharing errors (using AssignFile/Reset). I tried switching to using a
TStringList and its LoadFromFile method does still encountered the same
problems.
TFileStream has a param option for shared opening, but I'm not sure of the best
way to use the component when I want to work with the file in a line by line
means.
I suppose I could allocate a string the size of the file, read it in from the
TFileSteam, then store it in a TStringList for manipulation... unless theres an
easier, cleaner method??
Mark
--
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"