Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
TFileStream class is descendant of THandleStream for manipulating file data. This class introduces methods from THandleStream and some properties.
(Known issues / Documentation clarifications / Things to be aware of)
To load a file name c:\mydata.dat for read access into stream and then read 4 bytes from beginning of file into a variable.
var afile_st : TFileStream; temp_data: cardinal; ... afile_st:=TFileStream.Create('c:\mydata.dat',fmOpenRead); try //make sure file pointer is on beginning of file afile_st.Seek(0,soFromBeginning); //read buffer afile_st.ReadBuffer(temp_data,4); finally afile_st.Free; end;
(Please leave your name with your comment.)