Updated readLine fs api sample