Link to home
Start Free TrialLog in
Avatar of andyw27
andyw27

asked on

Reading a text file.

Hi,
Can anybody suggest some code that would allow me to open and then read a text file and then return the results within a datatable?
The complicated element is that this code will run inside a Window Service so I only want to read entries that have been written within the past 24 hrs.  

The log data looks like this:

25/07/2014 15:55:55 - Log Data
25/07/2014 16:05:57 - Log Data
25/07/2014 16:05:58 - Log Data
28/07/2014 07:41:43 - Log Data
28/07/2014 08:10:27 - Log Data

There can be any number of logs written and each is usually under 255 characters.

TIA
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial