string total_blob,path,exe_name
long ll_filelen,li_loops,li_counter,li_FileNum
ll_filelen =len(total_blob)
//判断需要读多少次,才可以将该文件全部读写成功
//在同一时间内,不可以读写大于32K(32765)的文件
IF ll_filelen > 32765 THEN
IF Mod(ll_filelen,32765) = 0 THEN
li_loops = ll_filelen/32765
ELSE
li_loops = (ll_filelen/32765) + 1
END IF
ELSE
li_loops = 1
END IF
//判断文件是否存在
if FileExists(path+exe_name) then
//存在删除
FileDelete(path+exe_name)
end if
li_FileNum = FileOpen(path+exe_name,StreamMode!, Write!, Shared!, Append!)
mle_1.text=mle_1.text+"~r~n正在写入"+path+exe_name+"...."
if li_loops > 1 then
//循环写文件
FOR li_counter = 1 to li_loops