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;
- namespace _2darowunfucker
- {
- class Program
- {
- static void Main(string[] args)
- {
- if (args.Length < 1)
- {
- Console.Out.WriteLine("OI GIVE ME A FILE!");
- Console.ReadKey();
- return;
- }
- else
- {
- List<long> missing = new List<long>();
- string file = args[0];
- try
- {
- long Row = -1;
- long Actual;
- string row;
- foreach (string line in System.IO.File.ReadAllLines(file))
- {
- if (Row == -1)
- {
- if (string.IsNullOrEmpty(line) || line[0]==' ' || line.ToLower().StartsWith("2da"))
- {
- continue;
- }
- else if (char.IsNumber(line[0]))
- {
- Row = 0;
- }
- }
- row = "";
- foreach (char c in line)
- {
- if (!char.IsNumber(c))
- break;
- row += c;
- }
- Actual = Convert.ToInt64(row);
- Console.Out.WriteLine(Actual);
- if (Actual != Row++)
- {
- Console.Clear();
- Console.Out.WriteLine("THIS ROW IS FUCKED: "+Actual);
- Console.ReadKey();
- return;
- }
- }
- }
- catch (Exception ex)
- {
- Console.Out.WriteLine("You fucked up: "+ex.GetType().Name+" "+ex.Message);
- }
- Console.Clear();
- Console.Out.WriteLine("NO ROWS SEEMS FUCKED!");
- Console.ReadKey();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement