'Reading unix text file in windows using node js

I have a text file which was made in Unix system, I have a windows system and reading of the file gives me my desired output only when I convert the text file to windows file, can I do this without converting the text file to windows text file. If I don't convert the file, the output is an empty array.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source