i know you gave me a good explain but my code isn't like yours cause i feel that my code is more understandable
i have tried your method to create to variables one for comment and another one for block and i failed
and also your method is relay on taking a sample of the file by EOF and this didn't suit me ,,,
thanks for your tips u were very helpful .