早教吧作业答案频道 -->其他-->
VB怎么将1.txt内容赋值到a(i)并put#1,,a(i)输出内容Open"c:\g.txt"ForBinaryAccessWriteAs#1Fori=0ToList2.ListCount-1openlist2.list(i)ForBinaryAccessWriteAs#2'list2.list(0)=c:\1.txtget#2,,a(i)close#2Put#1,,a(i)NextC
题目详情
VB 怎么将1.txt内容赋值到a(i)并 put #1,,a(i)输出内容
Open "c:\g.txt" For Binary Access Write As #1
For i = 0 To List2.ListCount - 1
open list2.list(i) For Binary Access Write As #2 'list2.list(0)=c:\1.txt
get #2,,a(i)
close #2
Put #1,,a(i)
Next
Close #1
Open "c:\g.txt" For Binary Access Write As #1
For i = 0 To List2.ListCount - 1
open list2.list(i) For Binary Access Write As #2 'list2.list(0)=c:\1.txt
get #2,,a(i)
close #2
Put #1,,a(i)
Next
Close #1
▼优质解答
答案和解析
Dim a() as byte
Open "c:\g.txt" For Binary Access Write As #1
For i = 0 To List2.ListCount - 1
open list2.list(i) For Binary Access Write As #2 'list2.list(0)=c:\1.txt
redim a(lof(2)-1)
get #2,,a()
close #2
Put #1,,a()
Next i
Close #1
这样试试
Open "c:\g.txt" For Binary Access Write As #1
For i = 0 To List2.ListCount - 1
open list2.list(i) For Binary Access Write As #2 'list2.list(0)=c:\1.txt
redim a(lof(2)-1)
get #2,,a()
close #2
Put #1,,a()
Next i
Close #1
这样试试
看了 VB怎么将1.txt内容赋值...的网友还看了以下:
高中数学a=1b=1fori=2to5a=a+bb=a+bNext输出a以上是题请问:i=2to5 2020-04-09 …
QB几道编程题(选择A、B、C、D)S=0:T=1FORI=1TO10T=2^(I-1)S=S+T 2020-05-13 …
VB怎么将1.txt内容赋值到a(i)并put#1,,a(i)输出内容Open"c:\g.txt" 2020-05-17 …
算法这是一个关于产生子集的算法subset(A[],n,cur)fori=1tocuroutput 2020-05-23 …
s=1fori=1to100s=s*iendfors中的s=1和s=s*i 2020-05-23 …
一道vfp求解释~为什么?很急!SettalkoffCleaInput‘请输入1到9之间的数=’t 2020-06-02 …
VB题求斐波那数列前20项奇数项之和第一项和第二项都是1从第三个元素开始,每个元素都是前两个元素的 2020-07-16 …
VByesno具体怎么用下面是我的代码不管是点yes还是nolist2都会添加项目怎么回事?Priv 2020-11-01 …
菜鸟级Dimf(20)AsIntegerDimiAsIntegerf(1)=1:f(2)=1Fori 2020-11-01 …
在VB中下面段程序是什么意思怎样运行的?J=1FORI=100TO4000STEP5DIST(J)= 2021-02-05 …