Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using (StreamReader sr = new StreamReader(File.OpenRead(Configuration[filename])))
- {
- string file = sr.ReadToEnd();
- string[] SplitFile = file.Split("rn");
- Type type = typeof(T).GetType();
- records.Add((T)Convert.ChangeType(SplitFile, type));
- }
- }
Add Comment
Please, Sign In to add comment