We help IT Professionals succeed at work.
Get Started

Input, Output to specific lines

CobraBytez
CobraBytez asked
on
365 Views
Last Modified: 2010-05-03
I have a basic understanding of the input, append and output commands.
I want the program to make a text file where each line of the text controls something (Example Below)

name1
name2
name3
name4
name5

So lets say i bress a button in VB and i want to make it change "name4" to "hello", but leave all the other lines the same how can i do this?
I also need to know how to make a program do this the opposite way for example:

name1
name2
name3
hello
name5

The program reads line 4 only and puts the word hello into a variable.
I am happy to accept any site on the web that can answer my questions as well...links are fine.

Sorry about the points guys I have a lot of questions and thats all I have left :(

Thank you!

Matthew
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE