GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Sep-2005, 12:18
ffantasy ffantasy is offline
New Member
 
Join Date: Sep 2005
Posts: 1
ffantasy is on a distinguished road

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  
Old 05-Sep-2005, 13:44
Guidelines Plz Guidelines Plz is offline
Junior Member
 
Join Date: Sep 2005
Posts: 87
Guidelines Plz is on a distinguished road
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 GIDBlogVista ?Widgets? on Windows XP by LocalTech

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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 07:44
Reading and Writing to a text file raptorhawk C++ Forum 16 14-Apr-2005 13:09
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 09:59.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.