delete method writeOnLine()