打开文件以本路径color.bmp文件为例 intnum1 = FreeFile Open App.Path & "\color.bmp" For Binary As #intnum1 Get #intnum1, i,temp '读出文件内容第i字节(单字节) Close #intnum1 Open App.Path & "\color.bmp" For Binary As #intnum1 Put #intnum1, i,temp ‘写入文件第i字节(单字节) close #intnum1
Open App.Path & "\color.bmp" For Binary As #intnum1 Put #intnum1, i,temp ‘写入文件第i字节(单字节) close #intnum1 ======================================================= 这样是不是仅在指定的位置上写入数据,其余位置的数据保持不变(既不会清空,又不会位置变动)呀?
intnum1 = FreeFile
Open App.Path & "\color.bmp" For Binary As #intnum1
Get #intnum1, i,temp '读出文件内容第i字节(单字节)
Close #intnum1
Open App.Path & "\color.bmp" For Binary As #intnum1
Put #intnum1, i,temp ‘写入文件第i字节(单字节)
close #intnum1
Put #intnum1, i,temp ‘写入文件第i字节(单字节)
close #intnum1
=======================================================
这样是不是仅在指定的位置上写入数据,其余位置的数据保持不变(既不会清空,又不会位置变动)呀?