Hi
I am trying to transfer a log file from server to client using TRoBinaryMemoryStream.
The problem I am having is that the log system is using the file to write and it prevents me from opening the file if I use the following code:
function TautenticacaoService.GetArquivoLog: binary;
begin
result := TROBinaryMemoryStream.Create;
result.LoadFromFile(Logger.currentLogFileName);
end;
I am wondering if I could use (how?) flags to signal the writer that I am just opening the file to read it, like:
TFileStream.Create(NomeArquivo, fmOpenRead or fmShareDenyNone)
Is there a way to do that using RO classes?