本文介绍了无法读取一定数量的行以进行字符串转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在读取一定数量的行以字符串时遇到麻烦.看来我的字串太大,经过一定的行数后,它仍无法读取(它只是自身的两倍).
有任何想法吗?我真的需要读入文本文件的前4,000行.
任何帮助深表感谢.谢谢
苏拉奇
我尝试专门告诉它读取这4000行,并且我还尝试将最大输入字符数设置为1,881,000.
Hello all,
I''m having trouble reading in a certain number of lines to string. Seems my strings are too large and it won''t read after a certain number of lines (it just doubles over itself).
Any ideas? I really need the first 4,000 lines of a text file read in.
Any help is much appreciated. Thank you,
Suraci
Edit: I tried specifically telling it to read in those 4000 lines, and I also tried setting a max input number of characters at 1,881,000... still ended up maxing out.
解决方案
这篇关于无法读取一定数量的行以进行字符串转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!