[求助]如何读取含有多个空格字符串
请各位高手帮忙!比如有这样的一组数据:2005 12 31 10 0 0.2 15 80。数字之间有多个空格(只有一个空格的会用),怎么把这些数据一个一个取出来。
open "文件路径" for input as #1
do while not EOF(1)
input #1,s
if trim(str(s))<>" " then
i=i+1
a(i)=val(s)
end if
loop
close #1
应该可以吧,我自己想的,呵 !!!