469,917 Members | 1,610 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,917 developers. It's quick & easy.

Parse positions in a long string inside text file?

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
4 1148
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
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
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
ditto.
Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by Ram Laxman | last post: by
21 posts views Thread by William Stacey [MVP] | last post: by
14 posts views Thread by micklee74 | last post: by
5 posts views Thread by meendar | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.