Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- namespace ConsoleApplication1
- {
- class Program
- {
- static void Main(string[] args)
- {
- const string a = "login";
- const string b = "kard";
- const string c = "inal";
- const string d = "exit";
- int i = "1";
- if (File.Exists("C:\\text.txt"))
- {
- StreamReader file = new StreamReader("C:\\text.txt");
- Console.WriteLine(file.ReadLine());
- string e = Console.ReadLine();
- if (e == a)
- {
- link1:
- Console.WriteLine("введите лог");
- string v = Console.ReadLine();
- if (b == v)
- {
- Console.WriteLine("введите пасс");
- while (i<4)
- {
- i++;
- Console.ReadKey(true);
- }
- string f = Console.ReadLine();
- if (f == c)
- {
- Console.WriteLine("authorised!");
- }
- else
- {
- Console.WriteLine("error!");
- goto link1;
- }
- }
- else
- {
- Console.WriteLine("error!");
- goto link1;
- }
- }
- }
- else
- Console.WriteLine("Файл не существует");
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement