Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: HZ1
  • Order by date
  1. HZ1

    Read Text file and allow to be opened for writing

    the issue is the code in the app: It opens the log in fmOpenReadWrite and fmShareCompat mode. fmShareCompat mode and fmShareExclusive work the same way. They both evaluate to 0: (fmShareCompat = ShareMode[0], fmShareExclusive = ShareMode[1]) (SysUtils.FileOpen) ShareMode: array[0..4] of...
  2. HZ1

    Read Text file and allow to be opened for writing

    It's for a logsearch function. I open the log in readonly mode to scan for a search text. While I have it open, the application that uses it as a log should be able to write to it. The app opens the file in fmOpenReadWrite or fmShareCompat... I have updated to use FREE but still it's an issue...
  3. HZ1

    Read Text file and allow to be opened for writing

    the reading is done w fmOpenRead or fmShareDenyNone the writing is done w fmOpenReadWrite or fmShareCompat.. even if writing is doen w fmOpenReadWrite or fmShareDenyNone still can't open the file for writing while it's being read or even while it's being copied... I need a solution which opens...
  4. HZ1

    Read Text file and allow to be opened for writing

    I would like to scan a log file in read only mode w no locking. I have tried with FileStream, AssignFile and even CopyFile. My issue is that there is a process running that needs to write to the file which may be during the time I am reading. I have the file open in fmOpenRead or fmShareDenynone...

Part and Inventory Search

Back
Top