<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nc.ut.ee/index.php?action=history&amp;feed=atom&amp;title=Files</id>
	<title>Files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nc.ut.ee/index.php?action=history&amp;feed=atom&amp;title=Files"/>
	<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Files&amp;action=history"/>
	<updated>2026-10-30T14:03:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Files&amp;diff=263&amp;oldid=prev</id>
		<title>Pavel: Protected &quot;Files&quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Files&amp;diff=263&amp;oldid=prev"/>
		<updated>2022-09-04T17:14:52Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php?title=Files&quot; title=&quot;Files&quot;&gt;Files&lt;/a&gt;&amp;quot; ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:14, 4 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Files&amp;diff=262&amp;oldid=prev</id>
		<title>Pavel at 17:14, 4 September 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Files&amp;diff=262&amp;oldid=prev"/>
		<updated>2022-09-04T17:14:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:14, 4 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Программа должна работать соотвественно представленному меню.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Программа должна работать соотвественно представленному меню.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;web&lt;/del&gt;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;narva&lt;/del&gt;.ut.ee/index.php&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B&lt;/del&gt; &amp;lt;&amp;lt;]&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[https://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;wiki&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nc&lt;/ins&gt;.ut.ee/index.php&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;?title=Примеры&lt;/ins&gt; &amp;lt;&amp;lt;]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
	<entry>
		<id>https://wiki.nc.ut.ee/index.php?title=Files&amp;diff=234&amp;oldid=prev</id>
		<title>Pavel: Created page with &quot;&lt;pre&gt; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO;   class Program {     static void Main(string[] args)     {...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.nc.ut.ee/index.php?title=Files&amp;diff=234&amp;oldid=prev"/>
		<updated>2022-09-04T17:04:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO;   class Program {     static void Main(string[] args)     {...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.IO;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
class Program&lt;br /&gt;
{&lt;br /&gt;
    static void Main(string[] args)&lt;br /&gt;
    {&lt;br /&gt;
        Console.Write(&amp;quot;Введите имя: &amp;quot;);&lt;br /&gt;
        string name = Console.ReadLine();&lt;br /&gt;
        Console.Write(&amp;quot;Введите отчество: &amp;quot;);&lt;br /&gt;
        string otchestvo = Console.ReadLine();&lt;br /&gt;
        Console.Write(&amp;quot;Введите фамилию: &amp;quot;);&lt;br /&gt;
        string surname = Console.ReadLine();&lt;br /&gt;
&lt;br /&gt;
        string FileText = name + &amp;quot; &amp;quot; + otchestvo + &amp;quot; &amp;quot; + surname; &lt;br /&gt;
        string Filename = &amp;quot;C:\\test\\new_file.txt&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
        File.AppendAllText(Filename, FileText); //допишет текст в конец файла&lt;br /&gt;
        File.AppendAllText(Filename, &amp;quot;\r\n&amp;quot;); //переход на новую строку в файле&lt;br /&gt;
&lt;br /&gt;
        Console.WriteLine(&amp;quot;Данные сохранены в файле &amp;quot; + Filename);&lt;br /&gt;
        Console.ReadKey();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Задание 1: Создайте файл numbers.txt и запишите в него натуральные числа от 1 до 500 в каждой строке.&lt;br /&gt;
&lt;br /&gt;
Задание 2: Модифицировать программу таким образом, чтобы сначала выводились на экран все записи из файла, а затем программа спрашивала: &amp;quot;Нажмите &amp;#039;y (yes) &amp;#039;, чтобы добавить запись или &amp;#039;q (quit)&amp;#039; чтобы выйти: &amp;quot;. &lt;br /&gt;
Если пользователь нажимает клавишу &amp;quot;y&amp;quot;, то снова вводит данные, если &amp;quot;q&amp;quot;, то программа завершается. &lt;br /&gt;
&lt;br /&gt;
Дополнительно: Модифицировать программу так, чтобы она выводила бы на экран пронумерованные строки текстового файла и следующее меню: 1) Добавить запись; 2) Удалить запись №; 3) Редактировать запись №.&lt;br /&gt;
Программа должна работать соотвественно представленному меню.&lt;br /&gt;
&lt;br /&gt;
[https://web.narva.ut.ee/index.php/%D0%9F%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B &amp;lt;&amp;lt;]&lt;/div&gt;</summary>
		<author><name>Pavel</name></author>
	</entry>
</feed>