![]() |
Readinf text file
Hi again.
I got a littel problem, i just cant find the solution. I read the txt file, then print it and its all fine. I can search some chars and calculate how many that kind of chars are in txt file. But are there posibiliti to input lets say 'a' and then it will search first 'a' letter and next lets say 10 chars. |
Re: Readinf text file
Yep, so you would need to read a character from the user, open and search the file for that character in exactly the same way you currently do, then just count off 10 characters and do whatever you want to do with them.
|
Re: Readinf text file
I know that, but i cant figur out how to count them...with somekind of array?loop?, mayby there are somewhere somekind of tutorial or help file???:).
|
Re: Readinf text file
Quote:
You may use : Code: c++
|
Re: Readinf text file
tnx il try that.:pleased:
|
| All times are GMT +5.5. The time now is 21:27. |