By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,605 Members | 1,483 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,605 IT Pros & Developers. It's quick & easy.

Reading Text File

P: 2
Hi Everybody,

well this is the first time I am going to enter a forum and I hope I will be able to get advices from you friends.

My problem is as follows

I have to use arrays,class,file handling, exception handling and string processing.

A text file contain English sentences and the only punctuations used are
" quote
"" speech
, comma
. and full stop

a prog is required to produce a list of 4-letter words used in the text file and each word has to occur only once in the list. A user defined exception is used to add in the list.

e.g once the word "read" is detected:

user defined exception occurs
the word is added to the list if it is not present
the program continues with the processing of the remaining words

once all the sentence is processed the user should be able to display the list in alphabetical order.

Thanks
RDX
Nov 15 '06 #1
Share this Question
Share on Google+
3 Replies


10K+
P: 13,264
Hi Everybody,

well this is the first time I am going to enter a forum and I hope I will be able to get advices from you friends.

My problem is as follows

I have to use arrays,class,file handling, exception handling and string processing.

A text file contain English sentences and the only punctuations used are
" quote
"" speech
, comma
. and full stop

a prog is required to produce a list of 4-letter words used in the text file and each word has to occur only once in the list. A user defined exception is used to add in the list.

e.g once the word "read" is detected:

user defined exception occurs
the word is added to the list if it is not present
the program continues with the processing of the remaining words

once all the sentence is processed the user should be able to display the list in alphabetical order.

Thanks
RDX
Welcome to the world of forums then. Your first lesson is that help is always readily available to those who show some effort in trying to solve their problems. In this problem for example, you could write some code to solve it, if you get stuck, you then post that code and describe where you are stuck.
Nov 15 '06 #2

P: 2
Hi Mr/ Mrs,

Im student in C++ programing.I would like to have answer of this question quikly or as soon as possible.
please help me
please.
Thanks for your help before.
Feb 15 '07 #3

10K+
P: 13,264
Hi Mr/ Mrs,

Im student in C++ programing.I would like to have answer of this question quikly or as soon as possible.
please help me
please.
Thanks for your help before.
Please read all the posts in this thread.
Feb 16 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.