2
votes
Vote UpVote

Delphi: create or append to a TFileStream

The Wiert Corner – 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 to use enumerations or sets of modes. –jeroen
Favorite? Off-Topic? jpluimers @ 2018-08-23 19:04

Statistics

Visits: 237
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
GNiessen
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)