Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 8th, 2008, 08:53 PM
Authorized User
 
Join Date: Jun 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default C Programming - Sent file using <

Dear programmers, Hi

I'm trying to write program called lineNumber.c, what it dose, it reads a file and put line number it front of it followed by '\t' TAB

for example my exe file name is ln and i try to read a file called sample.c,
one way is, using the command line arguments:
ln -i sample.c

second way is:
ln < sample.c which in this case i think the system opens that file automatically, and all i have to do is to read it.


Now my problem is, if the user want to use the second method, i want to know the input file name (In our case sample.c). How should i do that?


Thanks
Best Regards
Mani

Reply With Quote
  #2 (permalink)  
Old February 8th, 2008, 08:56 PM
Authorized User
 
Join Date: Jun 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OR How should i detect
ln < sample.c
from
ln

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
.ppt file for Beginning Linux programming 3rd tseng2005 BOOK Beginning Linux Programming, 3rd Edition 1 November 21st, 2005 02:15 PM
Problem in <Beginning Linux Programming> Chap21 users Linux 1 June 2nd, 2005 11:28 PM
Where? Code of <ASP.NET E-Commerce Programming>? YadongMao ASP.NET 1.0 and 1.1 Basics 3 February 27th, 2005 02:05 AM
<input type="File"> - Specify File Type and Path gp_mk Classic ASP Basics 2 August 2nd, 2004 03:07 AM
The code of <Oracle 9I Java Programming> One Wrox Book Feedback 5 April 14th, 2004 08:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.