<?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%2FFile_Stream%2FFile_Stream_Encode</id>
		<title>Csharp/C Sharp/File Stream/File Stream Encode - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FFile_Stream%2FFile_Stream_Encode"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/File_Stream/File_Stream_Encode&amp;action=history"/>
		<updated>2026-04-29T20:33:43Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/File_Stream/File_Stream_Encode&amp;diff=1292&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/File_Stream/File_Stream_Encode&amp;diff=1292&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:19Z</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/File_Stream/File_Stream_Encode&amp;diff=1293&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/File_Stream/File_Stream_Encode&amp;diff=1293&amp;oldid=prev"/>
				<updated>2010-05-26T11:45:35Z</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;==Uses StreamReader and StreamWriter object using different encoding to translate a file from one to another==&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;
/*&lt;br /&gt;
C# Programming Tips &amp;amp; Techniques&lt;br /&gt;
by Charles Wright, Kris Jamsa&lt;br /&gt;
Publisher: Osborne/McGraw-Hill (December 28, 2001)&lt;br /&gt;
ISBN: 0072193794&lt;br /&gt;
*/&lt;br /&gt;
// StrmCnvt.cs -- Uses StreamReader and StreamWriter object using different&lt;br /&gt;
//                encoding to translate a file from one to another&lt;br /&gt;
//&lt;br /&gt;
//                Compile this program with the following command line:&lt;br /&gt;
//                    C:&amp;gt;csc StrmCnvt.cs&lt;br /&gt;
using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
using System.Text;&lt;br /&gt;
namespace nsStreams&lt;br /&gt;
{&lt;br /&gt;
    public class StrmCnvt&lt;br /&gt;
    {&lt;br /&gt;
        static public void Main ()&lt;br /&gt;
        {&lt;br /&gt;
            FileStream istrm;&lt;br /&gt;
            FileStream ostrm;&lt;br /&gt;
            StreamReader reader;&lt;br /&gt;
            StreamWriter writer;&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
// Open the input file&lt;br /&gt;
                istrm = new FileStream (&amp;quot;./StrmRdr.txt&amp;quot;, FileMode.Open, FileAccess.Read);&lt;br /&gt;
// Link a stream reader to the stream&lt;br /&gt;
                reader = new StreamReader (istrm, Encoding.ASCII);&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception e)&lt;br /&gt;
            {&lt;br /&gt;
                Console.WriteLine (e.Message);&lt;br /&gt;
                Console.WriteLine (&amp;quot;Cannot open ./StrmRdr.txt&amp;quot;);&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
            try&lt;br /&gt;
            {&lt;br /&gt;
// Open the output file&lt;br /&gt;
                ostrm = new FileStream (&amp;quot;./StrmRdr.Uni&amp;quot;, FileMode.OpenOrCreate, FileAccess.Write);&lt;br /&gt;
// Link a stream reader to the stream&lt;br /&gt;
                writer = new StreamWriter (ostrm, Encoding.Unicode);&lt;br /&gt;
            }&lt;br /&gt;
            catch (Exception e)&lt;br /&gt;
            {&lt;br /&gt;
                Console.WriteLine (e.Message);&lt;br /&gt;
                Console.WriteLine (&amp;quot;Cannot open ./StrmRdr.Uni&amp;quot;);&lt;br /&gt;
                return;&lt;br /&gt;
            }&lt;br /&gt;
            ostrm.SetLength (0);&lt;br /&gt;
            while (reader.Peek () &amp;gt;= 0)&lt;br /&gt;
            {&lt;br /&gt;
                string str = reader.ReadLine ();&lt;br /&gt;
                writer.WriteLine (str);&lt;br /&gt;
            }&lt;br /&gt;
            reader.Close ();&lt;br /&gt;
            istrm.Close ();&lt;br /&gt;
            writer.Close ();&lt;br /&gt;
            ostrm.Close ();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
//File: StrmRdr.txt&lt;br /&gt;
/*&lt;br /&gt;
                 I Hear America Singing&lt;br /&gt;
I hear American Mouth-Songs, the varied carols I hear;&lt;br /&gt;
Those of mechanics -- each one singing his, as it should be,&lt;br /&gt;
        blithe and strong;&lt;br /&gt;
The carpenter singing his, as he measures his plank or beam,&lt;br /&gt;
The mason singing his, as he makes ready for work, or leaves&lt;br /&gt;
        off work;&lt;br /&gt;
The boatman singing what belongs to him in his boat -- the&lt;br /&gt;
        deckhand singing on the steamboat deck;&lt;br /&gt;
The shoemaker singing as he sits on his bench -- the hatter&lt;br /&gt;
        singing as he stands;&lt;br /&gt;
The wood-cutter&amp;quot;s song -- the ploughboy&amp;quot;s, on his way in the&lt;br /&gt;
        morning, or at the noon intermission, or at sundown;&lt;br /&gt;
The delicious singing of the mother -- or of the young wife at&lt;br /&gt;
        work -- or of the girl sewing or washing -- Each singing&lt;br /&gt;
        what belongs to her, and to none else;&lt;br /&gt;
The day what belongs to the day -- At night, the party of young&lt;br /&gt;
        fellows, robust, friendly;&lt;br /&gt;
Singing, with open mouths, their strong melodious songs.&lt;br /&gt;
                             -- Walt Whitman, 1860&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>