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
 php Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders


 
 
  System.IO.StringWriter Class
 
 Description
The StringWriter class is descended from the abstract TextWriter class. It allows a string to be written to character by character, or line by line in much the same way as if the string were a text file.
 Syntax
Constructor Create ( );
Constructor Create ( FormatProvider : IFormatProvider ; );
Constructor Create ( Builder : System.Text.StringBuilder ; );
Constructor Create ( Builder : StringBuilder; FormatProvider : IFormatProvider );
 Methods
Close  Closes the StringWriter
ToString  Returns the current value of the StringWriter internal string
Write  Adds a character or characters to the current string without line termination
WriteLine  Adds a line of text with carriage return/line-feed to the current string

 Properties
Encoding  System.Text.Encoding  The encoding in which the output is built

 Microsoft MSDN links
 
System.IO
System.IO.stringwriter
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page