By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,760 Members | 1,200 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,760 IT Pros & Developers. It's quick & easy.

Parse positions in a long string inside text file?

P: n/a
Hello All!
I have a long string that I need to make sense out of. I have the
documentation about what info is between which characters, I just need to
somehow parse each 94 character string into it's own section and from there
be able to identify what info is in positions 8-11 or 12-24 etc...

Any thoughts?

TIA

Luis
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
myString.substr(8, 11)

etc.
"Anon" <an**@anon.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| Hello All!
| I have a long string that I need to make sense out of. I have the
| documentation about what info is between which characters, I just need to
| somehow parse each 94 character string into it's own section and from
there
| be able to identify what info is in positions 8-11 or 12-24 etc...
|
| Any thoughts?
|
| TIA
|
| Luis
|
|
Nov 20 '05 #2

P: n/a
I think the mystring.substring will may work...
let me give it a shot!

Thanks!

Luis

"steve" <a@b.com> wrote in message
news:10*************@corp.supernews.com...
myString.substr(8, 11)

etc.
"Anon" <an**@anon.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| Hello All!
| I have a long string that I need to make sense out of. I have the
| documentation about what info is between which characters, I just need to | somehow parse each 94 character string into it's own section and from
there
| be able to identify what info is in positions 8-11 or 12-24 etc...
|
| Any thoughts?
|
| TIA
|
| Luis
|
|

Nov 20 '05 #3

P: n/a
Now any idea how to write text into a position or positions. for instance, I
want to input acct info into positions 1 - 13 and only those positions! any
thoughts?

TIA, you guys/gals are great help!

Luis
"Anon" <an**@anon.com> wrote in message
news:eo**************@TK2MSFTNGP10.phx.gbl...
I think the mystring.substring will may work...
let me give it a shot!

Thanks!

Luis

"steve" <a@b.com> wrote in message
news:10*************@corp.supernews.com...
myString.substr(8, 11)

etc.
"Anon" <an**@anon.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
| Hello All!
| I have a long string that I need to make sense out of. I have the
| documentation about what info is between which characters, I just need

to
| somehow parse each 94 character string into it's own section and from
there
| be able to identify what info is in positions 8-11 or 12-24 etc...
|
| Any thoughts?
|
| TIA
|
| Luis
|
|


Nov 20 '05 #4

P: n/a
ditto.
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.