Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void File()
- {
- string path = @"BD.txt";
- // Console.WriteLine("******считываем построчно********");
- using (StreamReader sr = new StreamReader(path, Encoding.Default))
- {
- string line,log,pass;
- while ((line = sr.ReadLine()) != null)
- {
- log=line.Split(':')[0];
- pass = line.Split(':')[1].Split(' ')[0];
- Console.WriteLine(line);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement