
2个回答
展开全部
dim lineStr as string,outer as string
Open "源文件" for input as #1
do until eof(1)
line input #1,linestr
outer = outer & linestr & vbcrlf
loop
close #1
open "目标文件" for output as #1
print #1,outer
close #1
msgbox "读取写入完成!"
Open "源文件" for input as #1
do until eof(1)
line input #1,linestr
outer = outer & linestr & vbcrlf
loop
close #1
open "目标文件" for output as #1
print #1,outer
close #1
msgbox "读取写入完成!"
展开全部
'楼上swx1995的回答不错……其实也可试试Binary的方法。
dim a as integer
dim b() as byte
a=freefile()
Open "c:\fk.txt" for binary as a
get #a,,b()
close
Open "c:\kf.txt" for binary as a
put #a,,b()
close
'抱歉我没时间试……这段代码好久没用了,如果有误请包涵哈
dim a as integer
dim b() as byte
a=freefile()
Open "c:\fk.txt" for binary as a
get #a,,b()
close
Open "c:\kf.txt" for binary as a
put #a,,b()
close
'抱歉我没时间试……这段代码好久没用了,如果有误请包涵哈
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询