<?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%2FCSharp_Tutorial%2FFile_Directory_Stream%2FFile</id>
		<title>Csharp/CSharp Tutorial/File Directory Stream/File - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FFile_Directory_Stream%2FFile"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/File&amp;action=history"/>
		<updated>2026-04-29T18:59:59Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/File&amp;diff=6824&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/File&amp;diff=6824&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</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/CSharp_Tutorial/File_Directory_Stream/File&amp;diff=6825&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/File_Directory_Stream/File&amp;diff=6825&amp;oldid=prev"/>
				<updated>2010-05-26T12:20:30Z</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;==Create the FileInfo class from the file selected in the OpenFileDialog==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.IO;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main() &lt;br /&gt;
  {&lt;br /&gt;
    OpenFileDialog dlgOpen = new OpenFileDialog();&lt;br /&gt;
    if (dlgOpen.ShowDialog() == DialogResult.OK)&lt;br /&gt;
    {&lt;br /&gt;
      FileInfo fi = new FileInfo(dlgOpen.FileName);&lt;br /&gt;
      Console.WriteLine(&amp;quot;Filename &amp;quot; + fi.FullName );&lt;br /&gt;
      Console.WriteLine(&amp;quot; Created at &amp;quot; + fi.CreationTime );&lt;br /&gt;
      Console.WriteLine(&amp;quot; Accessed at &amp;quot; + fi.LastAccessTime );&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==File.Exists==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.IO;&lt;br /&gt;
static class MainClass&lt;br /&gt;
{&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        Console.WriteLine(File.Exists(&amp;quot;c:\\test.txt&amp;quot;));&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;True&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==File: GetCreationTime and GetLastAccessTime==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.IO;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
  public static void Main() &lt;br /&gt;
  {&lt;br /&gt;
    OpenFileDialog dlgOpen = new OpenFileDialog();&lt;br /&gt;
    if (dlgOpen.ShowDialog() == DialogResult.OK)&lt;br /&gt;
    {&lt;br /&gt;
      string s = dlgOpen.FileName;&lt;br /&gt;
      Console.WriteLine(&amp;quot;Filename &amp;quot; + s);&lt;br /&gt;
      Console.WriteLine(&amp;quot; Created at &amp;quot; + File.GetCreationTime(s));&lt;br /&gt;
      Console.WriteLine(&amp;quot; Accessed at &amp;quot; + File.GetLastAccessTime(s));&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==File.ReadAllLines==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.IO;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        StreamWriter writer = new StreamWriter(@&amp;quot;c:\myfile.txt&amp;quot;);&lt;br /&gt;
        for (int i = 0; i &amp;lt; 3; i++)&lt;br /&gt;
        {&lt;br /&gt;
            writer.Write(i.ToString());&lt;br /&gt;
        }&lt;br /&gt;
        writer.Flush();&lt;br /&gt;
        writer.Close();&lt;br /&gt;
        foreach (string line in File.ReadAllLines(@&amp;quot;c:\myfile.txt&amp;quot;))&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(line);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;012&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==File.WriteAllLines==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.IO;&lt;br /&gt;
class MainClass&lt;br /&gt;
{&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        string[] lines = new string[10];&lt;br /&gt;
        for (int i = 0; i &amp;lt; 10; i++)&lt;br /&gt;
        {&lt;br /&gt;
            lines[i] = String.Format( &amp;quot;This is line number {0}&amp;quot;, i);&lt;br /&gt;
        }&lt;br /&gt;
        File.WriteAllLines(@&amp;quot;c:\test.txt&amp;quot;, lines);&lt;br /&gt;
        foreach (string line in File.ReadAllLines(@&amp;quot;c:\test.txt&amp;quot;))&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(line);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Key Members of the System.IO Namespace==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;Nonabstract I/O Class Type                   Meaning&lt;br /&gt;
BinaryReader&lt;br /&gt;
BinaryWriter                                 store and retrieve primitive data types (integers, Booleans, strings, and whatnot) as a binary value.&lt;br /&gt;
BufferedStream                               temporary storage for a stream of bytes that may be committed to storage.&lt;br /&gt;
Directory&lt;br /&gt;
DirectoryInfo                                used to manipulate a directory structure. &lt;br /&gt;
DriveInfo                                    provides information for the drives.&lt;br /&gt;
File&lt;br /&gt;
FileInfo                                     manipulate files. &lt;br /&gt;
FileStream                                   for random file access.&lt;br /&gt;
FileSystemWatcher                            monitor the modification of a given external file.&lt;br /&gt;
MemoryStream                                 random access to streamed data stored in memory.&lt;br /&gt;
Path                                         performs operations on path information.&lt;br /&gt;
StreamWriter&lt;br /&gt;
StreamReader                                 store and retrieve textual information to or from a file. &lt;br /&gt;
StringWriter&lt;br /&gt;
StringReader                                 underlying storage is a string buffer rather than a physical file.&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>