Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- var text = File.ReadAllLines("C:\\Users\\s0159399\\Downloads\\german.data");
- String[][] outout = new String[20][];
- for (int i = 0; i < outout.Length; i++)
- {
- outout[i] = new String[text.Length];
- for (int j = 0; j < text.Length; j++)
- {
- outout[i][j] = string.Empty;
- }
- }
- int[] sizes = { 4, 0, 5, 11, 0, 5, 5, 0, 5, 3, 0, 4, 0, 3, 3, 0, 4, 0, 2, 2 };
- int[] deltas = { 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1 };
- for (int i = 0; i < text.Length; i++)
- {
- String[] splitArray = text[i].Split(' ');
- splitArray = Array.Resize(ref splitArray, splitArray.Length - 1);
- for (int j = 0; j < splitArray.Length; j++)
- {
- if (sizes[j] == 0)
- {
- outout[i][j].Insert(outout[i][j].Length, splitArray[j]);
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement