asynchronous function writeFile added to fs and readline renewed