473,385 Members | 1,311 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

problem regarding counter utility

hi guys im trying to write a program that implements a utility for counting no.of characters,words and lines in specified file
A sample execution of such utility is shown below.

The utility should accept the file name as a command line parameter.

Optionally, it can accept the command line options to determine what entities must be displayed.

-c : for displaying the number of characters in the file
-w : for displaying the number of words in the file
-l : for displaying the number of lines in the file

Without any options, it should display all the details.
Sep 29 '07 #1
3 1171
oler1s
671 Expert 512MB
Well, good luck with your program. By the way, did you have a question for us?
Sep 29 '07 #2
hi guys im trying to write a program that implements a utility for counting no.of characters,words and lines in specified file
A sample execution of such utility is shown below.

The utility should accept the file name as a command line parameter.

Optionally, it can accept the command line options to determine what entities must be displayed.

-c : for displaying the number of characters in the file
-w : for displaying the number of words in the file
-l : for displaying the number of lines in the file

Without any options, it should display all the details.
I tooo am working on same project.
Can y give me a bit of idea of how to count character,space,no of lines from a given text file.
Oct 1 '07 #3
sicarie
4,677 Expert Mod 4TB
RichaDwivedi-

Asking your question in another person's thread is called thread hijacking, and it's very rude. Please have a look at our Posting Guidelines and ask your question in your own thread (following the rest of the Posting Guidelines as well ;) Thanks!
Oct 1 '07 #4

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

Similar topics

3
by: Armand Karlsen | last post by:
Is it possible to apply the same styling code as is used on my web page to a CGI-based hit-counter, where the script is a pre-made one supplied by the ISP? The webpage in question is:...
3
by: trialproduct2004 | last post by:
Hi all i am having C# application which is processing 5 urls asychronously using webrequest and webresponse classes. What i want is as soon as any url request processing is completed i want to...
3
by: Rohini Ramamurthy | last post by:
Hi All, I have taken up this problem to learn a bit in using linked lists. I am trying a variant of it what it is supposed to so is delete the nth person clockwise and counter clockwise...
0
by: freshman | last post by:
# test code: http://pyode.sourceforge.net/tutorials/tutorial3.html # #i want selecting object in pyode test code. # what's wrong? # under modify code # see selectObject() function # pyODE...
4
by: nishi57 | last post by:
I hope I can get some help regarding this issue, which has been going on for a while. I have a desktop user who is having problem running "Stored Procedures". The DB2 Connect application works fine...
5
by: garfy | last post by:
Hi i get this error in validation Line 22 column 6: document type does not allow element "title" here. <title>Seo Web Design Los Angeles - Web Design And Search Engine Optimization L ...
1
by: satyapalla | last post by:
Auto Logout: In IE7, I opened multiple tabs in the browser and my company site was opened in tab and I opened another tab and left the window. After few hours, I could see that company site tab is...
4
by: gwenky | last post by:
Hello, I'm really new to C++ and this forum, but I have read the "rules" regarding homework and I'm just looking for some guidance. I need to create a function that asks for the user to input an...
0
by: guangxiren | last post by:
Hi, there I have this data binding in the C code: char szCounter; .... pSql->BindCharParam(12,"@Counter",szCounter,TRUE,1024); I got a problem regarding the length of the datalen of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.