DelphiBasics
  Home  |  Delphi .net Home  |  System.IO NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 System.Globalization
 System.IO
 
  BinaryReader  Class 
  BinaryWriter  Class 
  BufferedStream  Class 
  Directory  Class 
  DirectoryInfo  Class 
  File  Class 
  FileAccess  Enumeration 
  FileAttributes  Enumeration 
  FileInfo  Class 
  FileMode  Enumeration 
  FileShare  Enumeration 
  FileStream  Class 
  FileSystemWatcher  Class 
  MemoryStream  Class 
  Path  Class 
  SeekOrigin  Enumeration 
  StreamReader  Class 
  StreamWriter  Class 
  StringReader  Class 
  StringWriter  Class 

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 ASP Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders

 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 

 
 
  System.IO.StreamReader Class
 
 Description
Calling writeTextBlock A StreamReader object allows character data to be read from a stream using either default or specified encoding.
 
The source may be a stream, a file or just a path that supports streaming. Optionally, the buffer size may be specified. After writeTextBlock
 Syntax
Constructor Create ( FileOrPath : String );
Constructor Create ( FileOrPath : String; DataEncoding : System.Text.Encoding );
Constructor Create ( FileOrPath : String; DetectEncodingFromByteOrderMarks : Boolean );
Constructor Create ( FileOrPath : String; DataEncoding : System.Text.Encoding; DetectEncodingFromByteOrderMarks : Boolean );
Constructor Create ( FileOrPath : String; DataEncoding : System.Text.Encoding; DetectEncodingFromByteOrderMarks : Boolean; BufferSize : Integer );
Constructor Create ( TargetStream : Stream );
Constructor Create ( TargetStream : Stream; DetectEncodingFromByteOrderMarks : Boolean );
Constructor Create ( TargetStream : Stream; DataEncoding : System.Text.Encoding );
Constructor Create ( TargetStream : Stream; DataEncoding : System.Text.Encoding; DetectEncodingFromByteOrderMarks : Boolean );
Constructor Create ( TargetStream : Stream; DataEncoding : System.Text.Encoding; DetectEncodingFromByteOrderMarks : Boolean );
Constructor Create ( TargetStream : Stream; DataEncoding : System.Text.Encoding; DetectEncodingFromByteOrderMarks : Boolean; BufferSize : Integer );
 Methods
Close  Closes the StreamReader
Peek  Gives the value of the next character in the stream without updating position
Read  Reads the next character or block of characters from the current stream
ReadLine  Reads a line of text from the current stream
ReadToEnd  Reads the remaining stream contents into a string

 Fields
Null    Provides a StreamReader around an empty stream.
 Properties
BaseStream  Stream  Returns the underlying stream.
CurrentEncoding  System.Text.Encoding  Gets the current character encoding that the current StreamReader is using.

 Microsoft MSDN links
 
System.IO
System.IO.StreamReader
 
Delphi Programming Neil Moffatt 2002 - 2016. All rights reserved.  |  Home Page