阅读背景:

基于空行或任何未使用的字符将文本文件拆分为数组

来源:互联网 

I have a text file which contains text lines separated by an empty line of text. I want to push the content of that file into an array, and use the empty line as a separator. I tried IFS="\n" (or "\r\n" etc..) but couldn't get it to work so instead I thought I would replace any empty line by a character that isn't in the file, so I picked up the spanish inverted question mark (\xBF) I have a text file which contains text lines se




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: