The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



TMixedFStream


TMixedFStream will open a named file and provide methods to read from or write to it. See Methods and Properties of TMixedFStream for details.

Sample
program:
The following short program snippet shows how to read a text file line by line. The string FName specifies the path and name of the file to be read:

var
  fs             : TMixedFStream;
  astr           : string;

...
...
fs := TMixedFStream.Create (FName, fmOpenRead);
while not fs.Eos do
  begin
  astr := fs.ReadLn(0);
  // now process astr
  end;
fs.Free;
...
...



Last Update: 2020-Feb-06