beginner help working with text files

  • Thread starter Thread starter Gaz
  • Start date Start date
G

Gaz

Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi all

I am trying to write a program that opens a text file and manipulates the data.

I have managed to open the text file into a textbox1 as a string
i now wish to add code to a button that will find a line in the
string that begins with a certain letter eg I and when it does i want to
insert a value eg 2 into a set character distance on the line. Can
anyone help me with a loop that could do this or another way please?
example code would be greatly appreciated thanks

Kind Regards,

Gary


Just to add im using visualbasic.net standard edition and i want to use
the code in a program not on a webpage... thanks in advance
 
Gaz said:
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

string that begins with a certain letter eg I and when it does i want to
insert a value eg 2 into a set character distance on the line. Can
anyone help me with a loop that could do this or another way please?


Just to add im using visualbasic.net standard edition and i want to use
the code in a program not on a webpage... thanks in advance

I suggest you study the .NET Framework String class and it's members for the
tools you need.

Start here:

http://msdn.microsoft.com/library/d.../cpref/html/frlrfsystemstringmemberstopic.asp
 
Back
Top