First of all I should mention that I know next to nothing about using files in C++, so please be explicit. ;)
I want to make a program that would be able to read and then print out certain sections of the text file I give it.
How to read a section of a txt file
Started by diego_pmc, Apr 07 2009 01:22 AM
3 replies to this topic
#1
Posted 07 April 2009 - 01:22 AM
|
|
|
#2
Posted 07 April 2009 - 07:31 AM
The first thing you need to do is learn file access. Do you know how to open files?
#3
Posted 07 April 2009 - 09:48 AM
#4
Posted 07 April 2009 - 03:18 PM
I would use a file stream if it's in C++, fopen if it's C. To be honest, reading/writing to a file isn't that hard, it's the OTHER processing that will get interesting. For example, what "other sections" will be printed?


Sign In
Create Account

Back to top










