Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

ElMD5 - TCrMD5.MD5_Hash_File works only if file isn't read-Only

Please add in TCrMD5.MD5_Hash_File

  OldFileMode := FileMode;
  FileMode := fmOpenRead;
  try
    AssignFile(InputFile, FInputFilePath);
   ...

  finally
    FileMode := OldFileMode;
  end;


best would be remove of old Assign-File and use modern TStream-Classes.

Comments

Sign In or Register to comment.