G
Guest
I’m using VB .Net 2003. I am reading a file into memory. Here is a sniplet of the file
[88games
gamename='88 Game
numPlayers=
alternating=
mirrored=
tilt=
usesService=
miscDetails=This is a 4 player team type game where 2 players compete each tim
P1NumButtons=
P1Controls=Just Buttons+butto
P1_BUTTON1=Ru
P1_BUTTON2=Jum
P1_BUTTON3=Ru
[005
gamename=00
numPlayers=
alternating=
mirrored=
tilt=
usesService=
miscDetails
P1NumButtons=
P1Controls=4-way Joystick+joy4wa
P1_BUTTON1=Fir
P1_JOYSTICK_UP=U
P1_JOYSTICK_DOWN=Dow
P1_JOYSTICK_LEFT=Lef
P1_JOYSTICK_RIGHT=Righ
[yard
It is quite large. Anyways. Now that I have it into a variable I would like to pull out a specific section into another variable. Say the “[005]†section. I have the code returning what character the string “[005]†starts at but don’t know the command or syntax to start at a certain character number (which I have) and then read until the first blank line then put it into another variable
After that I want to do the same thing, kind of, and put the parts after the “=†sign into separate labels that I have on my form
What is my best way to accomplish this
Thank you
Joh
[88games
gamename='88 Game
numPlayers=
alternating=
mirrored=
tilt=
usesService=
miscDetails=This is a 4 player team type game where 2 players compete each tim
P1NumButtons=
P1Controls=Just Buttons+butto
P1_BUTTON1=Ru
P1_BUTTON2=Jum
P1_BUTTON3=Ru
[005
gamename=00
numPlayers=
alternating=
mirrored=
tilt=
usesService=
miscDetails
P1NumButtons=
P1Controls=4-way Joystick+joy4wa
P1_BUTTON1=Fir
P1_JOYSTICK_UP=U
P1_JOYSTICK_DOWN=Dow
P1_JOYSTICK_LEFT=Lef
P1_JOYSTICK_RIGHT=Righ
[yard
It is quite large. Anyways. Now that I have it into a variable I would like to pull out a specific section into another variable. Say the “[005]†section. I have the code returning what character the string “[005]†starts at but don’t know the command or syntax to start at a certain character number (which I have) and then read until the first blank line then put it into another variable
After that I want to do the same thing, kind of, and put the parts after the “=†sign into separate labels that I have on my form
What is my best way to accomplish this
Thank you
Joh