473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 1251
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Ram Laxman | last post by:
Hi all, I have a text file which have data in CSV format. "empno","phonenumber","wardnumber" 12345,2234353,1000202 12326,2243653,1000098 Iam a beginner of C/C++ programming. I don't know how to...
21
by: William Stacey [MVP] | last post by:
Anyone know of some library that will parse files like following: options { directory "/etc"; allow-query { any; }; // This is the default recursion no; listen-on { 192.168.0.225;...
4
by: Remi Hugnon | last post by:
Hi, I want to build an expandable treeview. I saw some code on VB but I know only C# I plan for my class that each nodes has its own id (using span for example). Into a single aspx page...
1
by: Henrik | last post by:
I'm sorry to trouble you once again but somebody must know how to get a list of the desktop icons and their respective positions. I know that I have to look into shell but I have no idea how to...
14
by: micklee74 | last post by:
hi say i have string like this astring = 'abcd efgd 1234 fsdf gfds abcde 1234' if i want to find which postion is 1234, how can i achieve this...? i want to use index() but it only give me the...
5
by: Andy | last post by:
I'm having trouble accessing an unmanaged long from a managed class in VC++.NET When I do, the contents of the variable seem to be mangled. If I access the same variable byte-by-byte, I get the...
2
by: Samuel R. Neff | last post by:
I'm using a quasi open-source project and am running into an exception in double.Parse which is effectively this: double.Parse(double.MinValue.ToString()) System.OverflowException: Value was...
5
by: meendar | last post by:
Hi, I just want to parse a character string as below Char * c=abcsyd"loddggg"kjskjdfsdf; I need to stripe out loddgg from c (inside ""). How can i do this in c?
2
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.