Skip to content
Advertisement

Read the first two lines from a text file named “file1.txt” Write the two lines read from “file1.txt” to a new file “file2.txt”

I need to read the first two lines from a text file named “file1.txt” Write the two lines read from “file1.txt” to a new file called “file2.txt” Read “file2.txt” and Print the contents

JavaScript

But this is not working and I can’t find the error. please help

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement