fork download
  1. using System;
  2. using static System.Console;
  3. using System.IO;
  4.  
  5. public class Program {
  6. public static void Main(string[] args) {
  7. var texto = "2\n0.03159527 0.1990048 0.9794891\n0.02173799 0.9969404 0.07508247";
  8. using (var reader = new StringReader(texto)) { //só trocar para o arquivo aqui
  9. int size = int.Parse(reader.ReadLine());
  10. for (int i = 0; i < size; i++) {
  11. string[] linha = reader.ReadLine().Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
  12. WriteLine($"{linha[0]}, {linha[1]}, {linha[2]}"); //depois troca para o Vector3
  13. }
  14. }
  15. }
  16. }
  17.  
  18. //https://pt.stackoverflow.com/q/222295/101
Success #stdin #stdout 0.02s 16232KB
stdin
Standard input is empty
stdout
0.03159527, 0.1990048, 0.9794891
0.02173799, 0.9969404, 0.07508247