tfilestream Questions
3
Solved
I have a stream reader line by line (sr.ReadLine()). My code counts the line-end with both line endings \r\n and/or \n.
StreamReader sr = new System.IO.StreamReader(sPath, enc);
while (!sr.EndO...
Orling asked 15/9, 2014 at 7:50
2
I've been trying to create (TFileStream) a PDF through the TDownloadURL class, but I'm really having troubles in obtaining the file/stream from the URL, specially if the URL a HTTPS.
I'm not sure ...
Officialism asked 14/1, 2013 at 19:13
2
Solved
i've searched and searched and can't seem to find anything that describes what i'm look to do in delphi code. the solutins are sometimes close but not close enough for me to figure out. so here i a...
Superaltar asked 16/12, 2012 at 2:50
2
Solved
I need to extend TFileStream so that it can work with a file not from 0 offset, but from user defined offset. I mean it must interpret user defined offset as stream beginning. My code is:
type
T...
Forespeak asked 12/5, 2011 at 15:32
4
Solved
TFileStream provides buffered output, which is great in most cases, but in some cases (especially during debugging) it's nice to flush the buffer immediately. Thing is, I don't know of any way to d...
Eponym asked 24/4, 2009 at 18:23
2
Solved
this is a code snippet taken from https://forums.embarcadero.com/message.jspa?messageID=219481
if FileExists(dstFile) then
begin
Fs := TFileStream.Create(dstFile, fmOpenReadWrite);
try
Fs.Seek(...
Jonellejones asked 21/6, 2010 at 12:54
4
Solved
I'm using Delphi7 (non-unicode VCL), I need to store lots of WideStrings inside a TFileStream. I can't use TStringStream as the (wide)strings are mixed with binary data, the format is projected to ...
Nashner asked 30/8, 2009 at 15:20
1
© 2022 - 2024 — McMap. All rights reserved.