Working with lines
Problem while writing to file (doesn't exists)