cool thats very useful,
trying the example you give i then need to open the file and read the lines:
StreamReader objReader = new StreamReader(fi);
But it gives errors:
Error 1 The best overloaded method match for 'System.IO.StreamReader.StreamReader(string)' has some invalid arguments C:\Users\chris\Documents\work\uni\year3\project\visualproject\ConsoleApplication1\ConsoleApplication1\reports.cs 41 46 ConsoleApplication1
Error 2 Argument '1': cannot convert from 'System.IO.FileInfo' to 'string' C:\Users\chris\Documents\work\uni\year3\project\visualproject\ConsoleApplication1\ConsoleApplication1\reports.cs 41 63 ConsoleApplication1
I think streamreader is expecting a string what can i do to correct this?