|
-
Feb 24th, 2010, 03:04 PM
#1
Thread Starter
New Member
Need some advice/assistance
Not sure if this is the correct forum to post this in, if it's not, go ahead and move it.
So anyways I am in quite a bundle, I am clueless as to how to accomplish this feat.
Coding it in vb 2008.
I need help/the knowledge on how to add "0x" before every line of text, and after.
For example, I have this;
09070400 3c080907
09070404 8d09fffc
09070408 25390050
0907040c 1338ff05
09070414 25ef0001
09070418 a12f0000
0907041c 1000fefb
09070424 25290001
09070428 03e00008
I would like help coding something that automatically does it, and adds 0x in front, and behind it.
Such as;
0x09070400 0x3c080907
0x09070404 0x8d09fffc
0x09070408 0x25390050
0x0907040c 0x1338ff05
0x09070414 0x25ef0001
0x09070418 0xa12f0000
0x0907041c 0x1000fefb
0x09070424 0x25290001
0x09070428 0x03e00008
Thank you,
~Starfox
-
Feb 24th, 2010, 03:16 PM
#2
Re: Need some advice/assistance
Here is the data coming from a file?
Look at split...
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Feb 24th, 2010, 03:37 PM
#3
Thread Starter
New Member
Re: Need some advice/assistance
 Originally Posted by GaryMazzone
Here is the data coming from a file?
Look at split...
No, it is output from a generator, so to speak.
Might I ask what "split" is?
-
Feb 24th, 2010, 03:47 PM
#4
Re: Need some advice/assistance
Look at the String data type. There is something called Split. It will take a line and split it up based on what you say brakes up the peices.
Sometimes the Programmer
Sometimes the DBA
Mazz1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|