Hello It's simple. Write the program in the main function and run: node index < input.txt > output.txt