Guest User

Untitled

a guest
Feb 16th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. using (StreamReader sr = new StreamReader(File.OpenRead(Configuration[filename])))
  2. {
  3.  
  4. string file = sr.ReadToEnd();
  5. string[] SplitFile = file.Split("rn");
  6. Type type = typeof(T).GetType();
  7. records.Add((T)Convert.ChangeType(SplitFile, type));
  8. }
  9. }
Add Comment
Please, Sign In to add comment