dim s(1 to 5,1 to 5) as integer
dim sLine as string
dim i as integer,j as integer
'åå
¥
open "d:\test.txt" for output as #9
for i=1 to 5
sLine=""
for j=1 to 5
sLine=sLine & s(i,j) & space(1)
next j
print #9,sLine
next i
close #9
'读å
dim s(1 to 5,1 to 5) as integer
dim sLine as string,strt() as string
dim i as integer,j as integer
open "d:\test.txt" for input as #9
i=1
while not eof(#9)
lineinput #9,sLine
strt=split(sLine)
for j=1 to 5
s(i,j)=cint(strt(j))
next j
i=i+1
wend
close #9
温馨提示:答案为网友推荐,仅供参考