By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,604 Members | 1,444 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,604 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 13 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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