how do i read a command file oneĀ  line at a time?

example:
if 'r' is the command for read file, then

r
1

mean that it will read file data_1.txt

thank you

Aiman Sulaiman

--- On Fri, 3/6/09, Michael Comperchio <[email protected]> wrote:

From: Michael Comperchio <[email protected]>
Subject: Re: [c-prog] Strings Help
To: [email protected]
Date: Friday, March 6, 2009, 4:57 AM











    
            Paul,



he did say he was accepting strings.... can't accept a string without a 

second buffer :)



and yes, I think those two are related....



just got a call from a recruiter for an embedded 'c' programmer in 

Bethel CT... hope something pans out there. I really don't want to got 

back to the .NET world.... but man needs to eat I guess...



For Sale: Nice Parachute, Used Once, Never Opened, Slightly Stained



Michael Comperchio

mcmp...@gmail. com



On Mar 5, 2009, at 3:12 PM, Paul Herring wrote:



> On Thu, Mar 5, 2009 at 4:27 PM, Michael Comperchio <mcmp...@gmail. com> 

> wrote:

>  > memset( buffer, 1000, 0);

>  > strcat(buffer, first_text);

>  > strcat(buffer, second_text) ;

>

>  Requires three (or two if 'rephrased') buffers, not the one the OP

>  mentioned, but workable. (Ignoring, of course, the dubious reasoning

>  behind the initial request.)

>

>  > or does strcat not exist in stdlib anymore?

>

>  It does. It even made it to <cstdlib>.

>

>  > I'm just returning to C/C++

>  > after a 10 year stint in the (gag) .NET world. But I was a C 

> programmer

>  > for 15 year before that. Hope my memory isn't as bad as I think it 

> is!

>  >

>  > For Sale: Nice Parachute, Used Once, Never Opened, Slightly Stained

>

>  If those two are related: Oh dear.

>

>  --

>  PJH

>

> http://shabbleland. myminicity. com/ind

> http://www.chavgang s.com/register. php?referer= 9375

> 




 

      

    
    
        
         
        
        








        


        
        


      

[Non-text portions of this message have been removed]

Reply via email to