|
-
October 22nd, 1999, 09:10 AM
#1
How do I Take a large string and divide it up into smaller ones?
What is the best way to take a large string like a line of text read from a file and break it up into smaller chunks. For example if I had the following txt file parts (not all of the strings are the same size)
The text file would look like:
Hi My name Is Dork
What Kinda Name Is That Moron
Now I want to take this file and read in the lines and divide the individual lines up into individual strings like this:
a = Hi
b = My
c = Name
d = Is
e = Dork
a = What
b = kinda
c = Name
d = Is
e = That
f = Moron
Perhaps this could be in an array?!?
Thanks,
Aaron
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
|