
Originally Posted by
VB Client/Server
This sample code will help me.
1.Load any binary file (example 10 kb)
VB Code:
Dim strBuff As String
Open strFileName For Binary As #1
strBuff = Space(Lof(1))
Get #1, , strBuff
Close #1
2.Read first 15 bytes from file and put him in text box
VB Code:
Text1.Text = Left$(strBuff, 15)
3.Then skip (example) 40 bytes and select 10 bytes afther that then show them in text 2
VB Code:
Text2.Text = Mid$(strBuff,56,10)
4.create ini file with (text1 and text2) from this file I will use settings for programing device
Search the site for Ini file handling. There are many threads showing various methods to use.