C#C++读取文件
from to height(m) length(km)B P4 1.4960 0.4
B P1 1.7897 0.5
P1 P2 1.7965 0.6
像这样格式的TXT文档怎么用C#读取,用C++又怎么读取? --------------------编程问答-------------------- C#
string content = File.ReadAllText(path) --------------------编程问答-------------------- --------------------编程问答-------------------- 先要知道读来干什么的 才能决定怎样去读取合适 --------------------编程问答-------------------- 用streamreader
一行行读或者 一次读完。 --------------------编程问答--------------------
这个太牛了,1行搞定
补充:.NET技术 , C#