HI , I see your sugestion to resolve the problem of comment on the last line of file. The solution resolve this problem but if I have a comment in the first line this solution have problems. My file is like this: //test ... //(here is the end of file without new line) Please could yo help me. Daniel Ramos