Node.js multiline input
I’d like to prompt the user for input, let the user enter multiple lines of text, hitting enter between each line, then terminate the input by pressing CTRL+D or some such thing.
I’d like to prompt the user for input, let the user enter multiple lines of text, hitting enter between each line, then terminate the input by pressing CTRL+D or some such thing.
To read some text file, in C or Pascal, I always use the following snippets to read the data until EOF:
I am getting an error while running this part of the code. I tried some of the existing solutions, but none of them helped.