Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.983 Beiträge
 
#1

Delphi: create or append to a TFileStream

  Alt 23. Aug 2018, 18:10
It looks like the Delphi [WayBack]*TFileStream.Create does not have an overload that allows you to create or append. Luckily, [Archive.is] TFile.Open allows you to do this when passing the correct [Archive.is]*TFileMode*enumeration value: TempStream := TFile.Open(TempPath, TFileMode.fmOpenOrCreate, TFileAccess.faReadWrite, TFileShare.fsRead); I still wonder why that never made it into a TFileStream.Create overload, or why these overloads fail […]

Weiterlesen...
  Mit Zitat antworten Zitat