I have a problem, I want to read all the SELECT of a file. The SELECT must be all separated.
The SELECTs are all separated by a space.
All SELECT should be stored in a ARRAY or in a IEnumerable .
Something like that I want to do, but read all the SELECT:
public static string[] LeeArchivo()
{
return File.ReadAllLines(rutaArchivo)
.TakeWhile(s => !string.IsNullOrWhiteSpace(s))
.ToArray();
}
Is there a way to fix it?
Greetings