Пишу значит новый файл из 5 байт. Заканчаваю, почему-то файл 6 байт, а точнее добавляется нулевой байт.
Что такое?




dim FN as Byte
FN=Freefile
Open FileName For Binary As FN
Put#FN,1,Asc("F")
Put#FN,2,Asc("I")
Put#FN,3,Asc("L")
Put#FN,4,Asc("E")
Put#FN,5,Asc("!")
Close#FN
Zoomie писал(а):
- Код: Выделить всё
Put#FN,5,Asc("!")
Function Asc(String As String) As Integer
Dim FN As Byte
FN = FreeFile
Open FileName For Binary As FN
Put #FN, 1, "FILE!"
Close #FN

Print #EN, ,"F"; "A"; "I"; "L"; "!"Сейчас этот форум просматривают: AhrefsBot и гости: 5