VBS how to read a text file containing fixed format
Time:09-23
Type Dog W As Long H As Long End Type Sub storage structure text file () Dim DogPoint As Dog Open "d: \ test. TXT" For Binary Access Write As # 1 For I=1 To 10 With DogPoint W.=I H=I * 2 End With Put # 1, and DogPoint Next The Close End Sub
So save the structure of the body, with VBS read how to write? (note that is not a VB, nor VBA, is read text writing VBS.)
CodePudding user response:
VBS directly through Scripting. FSO to read,
CodePudding user response:
Structure after storage for text, numerical becomes like a memory, is about 4 bytes represents a numeric value, then what is the carry of on any account, and the processing of the decimal part, cannot simply read can use.
CodePudding user response:
You post the code is a VB6, or the VBS?
If it's VBS, since can use Binary write, can't read in Binary?
CodePudding user response:
The code above is vb and vba code,,, there is no structure of the VBS So how to save, how to take not achieve them.