Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have in my text file called "lect

Status
Not open for further replies.

PaolaS

Programmer
Aug 23, 2001
8
ES
I have in my text file called "lectura.txt":

lectura.txt
----------------------------------------------------------
Sandra Bullock
Edmundo Wilson
Daniel Perez
Peter Julius
Anthony Hopkins
Paola Sandoval
Giovanna White
----------------------------------------------------------

But, I want learn the second row, from the position 3 to 7
the word "mundo".
In the sixth row, from the position 8 to 11 the word "ando".

The result words "mundo" and "ando", put in another text file called "salida.txt".

Results:

salida.txt
-----------------------------------------------------
mundo
ando
-----------------------------------------------------

If anybody know the code for it, I will be thanksfully.

Paola S
 
What is the idea behind this? If we knew what the reason was there may be an algorithm.

Matt
 
I´m beginner in Visual C++, OK....., you said me, an algorithm, but which is the code for it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top