I have a text file that contains numbers in this format :
84 152 100
86 149 101
83 149 99
86 142 101
How can I remove the spaces and bring it in this shape :
84 152 100
86 149 101
83 149 99
86 142 101
This is what I have tried so far :
string path = Directory.GetCurrentDirectory();
string[] lines = System.IO.File.ReadAllLines(@"data_1_2.txt");
string[] line = lines[0].Trim().Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
But the result of this input is :
84
152
100