Ahoj, chcel by som sa opýtať ako môžem vytiahnuť text zo súboru podľa riadkov, skúšal som to takto ale hneď po spustení mi to crashlo
string subor = @"udaje.dat";
string[] lines = File.ReadAllLines(subor);
string id = lines[1];
string heslo = lines[2];