How to read from file

Hello!

I need to read some date from log file and send it by mail.
How can I do this?