Открываю через Open - ...
StringFull = StringFull & StringPart
xolod писал(а):Интересно, то что я написал, было замечено ?
xolod писал(а):
- Код: Выделить всё
StringFull = StringFull & StringPart
вообще гиблое дело, слишком медленно...
sashar2 писал(а):... выводится файл с виду похожий, но ...
dim s as string
open "file" for input as #1
s=input$(lof(1),#1)
close #1
Private Declare Function lopen Lib "kernel32" Alias "_lopen" _
(ByVal lpPathName As String, ByVal iReadWrite As Long) As Long
Private Declare Function lclose Lib "kernel32" Alias "_lclose" (ByVal hFile As Long) As Long
Private Declare Function lread Lib "kernel32" Alias "_lread" _
(ByVal hFile As Long, lpBuffer As Any, ByVal wBytes As Long) As Long
Private Declare Function GetFileSize Lib "kernel32" _
(ByVal hFile As Long, lpFileSizeHigh As Long) As Long
Private Sub Form_Load()
Dim Fn As Long
Dim Size as Long
Dim Lbuf() as Byte
Fn = lopen("C:\MyFile.txt", 2)
Size = GetFileSize(Fn, 0)
ReDim LBuf(Size - 1)
lread Fn, LBuf(0), Size
lclose Fn
End Sub
Сейчас этот форум просматривают: Google-бот, Yandex-бот и гости: 137