MLUG: Re: [MLUG] Need Program, Mind Not Working
Re: [MLUG] Need Program, Mind Not Working
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mike told you what fgetln does.

But you might also find fgets is what you need.  (But you need to know
an upper bound on how long the line will be.)


John Engelbrecht wrote:
> 
> Stephen, I'm curious, what does fgetln do?
> I am in  serious need to find a good way  to do
> line by line File reading, fscanf does word by word,  so
> if there's a space at the end of the word, that amount of
> characters will only be read.
> 
> On Thu, 6 Dec 2001, Stephen Montgomery-Smith wrote:
> 
> > Oh, the -d is somewhat essential to make the script work.  It cause the
> > find to do a "depth first search", which means it lists he contents of
> > the directory before it lists the directory.  But I think it would be
> > easy to change the script so that the -d is not needed.
> >
> > I spend most of my time using BSD, and then when I switch my stuff to
> > Linux, sometimes it doesn't work.  Most recently I was frustrated to
> > find that the C function fgetln was not on Linux.
> >
> >
> > Neil Bradshaw wrote:
> > >
> > > What exactly does find -d do? My Red Hat system says that find -d is
> > > invalid.
> > >
> > > Thanks for all the help everyone, BTW. You guys probably saved me a few
> > > hours of renaming each file by hand.
> > >
> > > Regards,
> > > Neil
> > >
> > > --
> > > To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
> > >
> > > Archives are available at http://mlug.missouri.edu/list-archives/
> >
> > --
> > Stephen Montgomery-Smith
> > EMAIL:PROTECTED
> > http://www.math.missouri.edu/~stephen
> > --
> > To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
> >
> > Archives are available at http://mlug.missouri.edu/list-archives/
> >
> 
> --
> To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
> 
> Archives are available at http://mlug.missouri.edu/list-archives/

-- 
Stephen Montgomery-Smith
EMAIL:PROTECTED
http://www.math.missouri.edu/~stephen
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php

Archives are available at http://mlug.missouri.edu/list-archives/