random ramblings on Delphi, programming, Delphi programming, and all the rest
const fm: array[Boolean] of Word = (fmCreate, fmOpenWrite); fs := TFileStream.Create(fileName, fm[FileExists(fileName)]);