Forum > General

unable to load ... textfile

<< < (2/2)

FDitsche:
hi

same second you replied i tested it while apache is off and it works!

this is good, but...

my next job ist to find the way without stopping apache.

a big thank you

FD

theo:
You could try different Share Modes like:

  TheStream:=TFileStream.Create(FileName,fmOpenRead or fmShareDenyNone);
  Memo1.Lines.LoadFromStream(TheStream);
  TheStream.Free;


Not sure..

FDitsche:
Hi

sorry for my late reply (sometimes i got to work  ;) )

your code does it


--- Code: ---var TheStream : TFileStream;
....
   TheStream:=TFileStream.Create(ApacheErrorLog,fmOpenRead or fmShareDenyNone);
   ApacheErrorlogMemo.Lines.LoadFromStream(TheStream);
   TheStream.Free;

--- End code ---

many many thanx

FD

Navigation

[0] Message Index

[*] Previous page

Go to full version