how i can add or write new line or string at the beginning of an existing file