BFreshour
Programmer
- Mar 20, 2002
- 84
Let me first tell you I have just started programming in VB.NET. I'm a very good ColdFusion programmer so I have the 'mindset' of a programmer (somewhat). I'm trying to design a program that does something specific, like parse a text file.
It should have a form with a TextBox where you can enter a string. The string needs to support spaces at the beginning and end of it. For instance, " 3445 " instead of "3445".
Next it needs to have a BROWSE where you can select the file you wish to Parse and a Parse button.
What this program does when you click Parse is run through the file you select and remove ANY lines with your string in it. However, not only does it need to remove that line, it needs to remove the line after that.
Like I said, I'm a newbie VB.NET guy and although I'm working my way through WROX Publishing books I'm not near up to this level. I'm trying to design the form now. If anyone can give me some lines of 'code' or some tips on how exactly I need to do this, I would appreciate it.
Here's a sample of what the file looks like:
We should probably note that those aren't TABS put spaces in between the items.
It should have a form with a TextBox where you can enter a string. The string needs to support spaces at the beginning and end of it. For instance, " 3445 " instead of "3445".
Next it needs to have a BROWSE where you can select the file you wish to Parse and a Parse button.
What this program does when you click Parse is run through the file you select and remove ANY lines with your string in it. However, not only does it need to remove that line, it needs to remove the line after that.
Like I said, I'm a newbie VB.NET guy and although I'm working my way through WROX Publishing books I'm not near up to this level. I'm trying to design the form now. If anyone can give me some lines of 'code' or some tips on how exactly I need to do this, I would appreciate it.
Here's a sample of what the file looks like:
Code:
01 04/29/02 08:08 00:02:15 --2--- 000028 2561 3557
28 0 000000
01 04/29/02 08:08 00:00:22 --2--- 000027 3365 3719
27 0 000000
We should probably note that those aren't TABS put spaces in between the items.