A stream that you can read from. Usually you will pass the stream to a "higher level" object like TextReader that will handle the reading. You can use File.OpenInput to get a file input stream.
A stream that you can write to. Usually you will pass the stream to a "higher level" object like TextWriter which will handle the writing. Use File.OpenOutput to get a file output stream.
Reads text from the underlying stream. In most cases you should avoid using TextReader and instead read the text with File.ReadString or File.ReadList.
Example: DimWriterAsTextWriter Writer.Initialize(File.OpenOutput(File.DirDefaultExternal, "1.txt", False))
Writer.WriteLine("This is the first line.")
Writer.WriteLine("This is the second line.")
Writer.Close