![]() |
|
#1
|
|||
|
|||
need help on text file analyser** this is the question:
Write a complete C program that can be used as a text file analyser. The analyser program should be able to combine two text files and provide the statistics of the following items in a text file: number of alphabetical letters (A to Z and a to z), characters (without spaces), characters (with spaces), words, lines of text, and paragraphs. The text files (e.g. filename.txt, filename.c or filename.dat created using MS DOS Editor or MS Notepad) should contain English words, and each paragraph is separated by a blank line. When the program is run, the user is prompted to select an option from a menu as shown below: Menu 1. Merging two text files 2. Obtain the statistics of a text file If option 1 is selected, then the following prompts appear: Enter the names of the two files to be merged: filename1.txt filename2.txt Enter the name of the merged file: filename3.txt If option 2 is selected, then the following prompt appears: Enter the name of the file to be analysed: filename3.txt An example output of the option 2 is as below: filename3.txt Alphabetical letters 100 Characters (without spaces) 120 Characters (with spaces) 200 Words 30 Lines of text 5 Paragraphs 2 ** can help me ma.... i stuck ..... thanks..... i duno how to do it... can give me guide ma.... tq |
|||
|
#2
|
|||
|
|||
|
Yes we can, but we don't know what you need help on. Please read the http://www.gidforums.com/f-28.html to get tips on posting questions that will help us help you...
|
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Reading and Writing to a text file | raptorhawk | C++ Forum | 16 | 14-Apr-2005 14:09 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 11:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 12:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The