<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.IO%2FStreamWriter</id>
		<title>Csharp/C Sharp by API/System.IO/StreamWriter - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.IO%2FStreamWriter"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.IO/StreamWriter&amp;action=history"/>
		<updated>2026-04-30T17:23:50Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.IO/StreamWriter&amp;diff=4993&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.IO/StreamWriter&amp;diff=4993&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.IO/StreamWriter&amp;diff=4994&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.IO/StreamWriter&amp;diff=4994&amp;oldid=prev"/>
				<updated>2010-05-26T12:12:33Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==new StreamWriter==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Text;&lt;br /&gt;
class MainClass {&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        using (FileStream fs = new FileStream(&amp;quot;test.txt&amp;quot;, FileMode.Create)) {&lt;br /&gt;
            using (StreamWriter w = new StreamWriter(fs, Encoding.UTF8)) {&lt;br /&gt;
                w.WriteLine(124.23M);&lt;br /&gt;
                w.WriteLine(&amp;quot;Test string&amp;quot;);&lt;br /&gt;
                w.WriteLine(&amp;quot;!&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        Console.WriteLine(&amp;quot;Press Enter to read the information.&amp;quot;);&lt;br /&gt;
        Console.ReadLine();&lt;br /&gt;
        using (FileStream fs = new FileStream(&amp;quot;test.txt&amp;quot;, FileMode.Open)) {&lt;br /&gt;
            using (StreamReader r = new StreamReader(fs, Encoding.UTF8)) {&lt;br /&gt;
                Console.WriteLine(Decimal.Parse(r.ReadLine()));&lt;br /&gt;
                Console.WriteLine(r.ReadLine());&lt;br /&gt;
                Console.WriteLine(Char.Parse(r.ReadLine()));&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==StreamWriter.Flush==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
public class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main() &lt;br /&gt;
  {&lt;br /&gt;
    FileStream outStream = File.Create(&amp;quot;c:\\TextTest.txt&amp;quot;);&lt;br /&gt;
    StreamWriter sw = new StreamWriter(outStream);&lt;br /&gt;
    sw.WriteLine(&amp;quot;This is a test of the StreamWriter class&amp;quot;);&lt;br /&gt;
    sw.Flush();&lt;br /&gt;
    sw.Close();&lt;br /&gt;
    StreamReader sr = new StreamReader(&amp;quot;c:\\TextTest.txt&amp;quot;);&lt;br /&gt;
    string FirstLine;&lt;br /&gt;
    FirstLine = sr.ReadLine();&lt;br /&gt;
    Console.WriteLine(FirstLine);&lt;br /&gt;
    sr.Close();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==StreamWriter.Write==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        FileStream fs2 = File.Create(&amp;quot;Bar.txt&amp;quot;);&lt;br /&gt;
        StreamWriter w2 = new StreamWriter(fs2);&lt;br /&gt;
        w2.Write(&amp;quot;Goodbye Mars&amp;quot;);&lt;br /&gt;
        w2.Close();&lt;br /&gt;
        fs2 = File.Open(&amp;quot;Bar.txt&amp;quot;, FileMode.Open, FileAccess.Read, FileShare.None);&lt;br /&gt;
        StreamReader r2 = new StreamReader(fs2);&lt;br /&gt;
        String t;&lt;br /&gt;
        while ((t = r2.ReadLine()) != null) {&lt;br /&gt;
            Console.WriteLine(t);&lt;br /&gt;
        }&lt;br /&gt;
        w2.Close();&lt;br /&gt;
        fs2.Close();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==StreamWriter.WriteLine==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;  &lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
public class IOExample&lt;br /&gt;
{&lt;br /&gt;
  static void Main() {   &lt;br /&gt;
    FileStream fs;&lt;br /&gt;
    StreamWriter sw;&lt;br /&gt;
&lt;br /&gt;
    try {&lt;br /&gt;
      fs = new FileStream(&amp;quot;practice.txt&amp;quot;, FileMode.Open );&lt;br /&gt;
      sw = new StreamWriter(fs);&lt;br /&gt;
      // write a line to the file&lt;br /&gt;
      string newLine = &amp;quot;Not so different from you and me&amp;quot;;&lt;br /&gt;
      sw.WriteLine(newLine);&lt;br /&gt;
      // close the streams&lt;br /&gt;
      sw.Close();&lt;br /&gt;
      fs.Close();&lt;br /&gt;
    } catch (IOException ioe) {&lt;br /&gt;
      Console.WriteLine(&amp;quot;IOException occurred: &amp;quot;+ioe.Message);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
    &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>