Okay first of all thanks to those who reminded me of the open file syntax

Heres my current problem

I have managed to search for and extract the first line from each word document on a hdd.

however a ms word doc puts alsorts of rubbish in with the actual text.

what i need to be able to do is extract the first line of actual text from the document??

Is there any known methods for doing this eg for reading a word document or will i have to manually code a trim function to go through and sort all the rubbish out??