Recent

Author Topic: TFileStream question.  (Read 3560 times)

jamie

  • Hero Member
  • *****
  • Posts: 6090
TFileStream question.
« on: July 29, 2021, 12:28:03 am »

If I Set the SIZE property to 0 before freeing the Stream, does it delete the file that was created ?
The only true wisdom is knowing you know nothing

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: TFileStream question.
« Reply #1 on: July 29, 2021, 09:03:22 am »
No, because a 0 size file is still a valid file.

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: TFileStream question.
« Reply #2 on: July 29, 2021, 11:15:32 pm »
Ok, Making a TVirualMemoryStream class it is.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018