using System.Collections.Generic;
public static void Main(String [] args)
string [] t = new string [151];
Console.Write("Введите название файла: ");
filename = Console.ReadLine();
if (!File.Exists(filename))
Console.WriteLine("Файл не найден");
StreamReader f = File.OpenText(filename);
while((str = f.ReadLine()) != null)
string[] delimiters = { ";", "*", ":", "(", ")",".","[","]" };
foreach (string delimiter in delimiters)
str = str.Replace(delimiter, " " + delimiter + " ");
string[] words = str.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
for (int i = 0; i < words.Length; i++)
for(int j = 0; j < 11; j++){
Console.Write(" " + index);
if((i == 0 && (words[1] == ":")) || words[i] == words[i].ToUpper()){
for(int j = 0; j < 51; j++){
for(int j = 11; j < 51; j++){
Console.WriteLine("table overflow!");
Console.Write( " " + index);
} else if(words[i][0] == '$') {
for(int j = 101; j < 151; j++){
for(int j = 101; j < 151; j++){
Console.WriteLine("table overflow!");
Console.Write( " " + index);
for(int j = 50; j < 101; j++){
for(int j = 50; j < 101; j++){
Console.WriteLine("table overflow!");
Console.Write( " " + index);
Console.WriteLine("Ошибка при чтении из файла!");