|
-
Feb 4th, 2000, 08:12 AM
#1
Thread Starter
New Member
In a program I'm using to edit certain aspects of a configuration file, I read the entire contents of the file into an array (each index representing one line of the array).
Then, using a for loop I'd like to go through the array until I find a line that STARTS WITH "DataEntry1" (minus the quotes). The problem is there will probably be text AFTER that DataEntry1 like someone's name, or something like that.
Basically, how do I find a string within a string. Using Perl this would be a lot easier for me, but I need to do this in VB for other reasons, obviously.
Thanks
-Morg
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
|