我想要做什么: 1. 读取文件 2. 拆分读取的文件。
这是一个示例输入文件 -
#This is a comment
Line one of first block,
Line two of first block,
Line three of first block.
Line one of second block.
Line two of second block
line three of second block.
Line one of third block.
每个块由换行符分隔(无法控制它们是否是 windows/unix)。如何使用nodejs分别读取每个块?