Hello,

In console application :
Suppose I have a line in the file, that looks like :
a b c 123 aa bb cc

Can I read from the file,
that each single read, read each element.
(I mean : the first read will read "a", second will read "b", third will
read "c", and so on "123", "aa", "bb", "cc" ...)

Thanks :)

Re: read elements from file by David

David
Sat May 07 07:50:38 CDT 2005


"John M" <nobody@nospam_please.com> wrote in message
news:uolmzytUFHA.1384@TK2MSFTNGP09.phx.gbl...

> In console application :
> Suppose I have a line in the file, that looks like :
> a b c 123 aa bb cc
>
> Can I read from the file,
> that each single read, read each element.
> (I mean : the first read will read "a", second will read "b",
> third will read "c", and so on "123", "aa", "bb", "cc" ...)

Look up the function strtok()

Dave
--
David Webber
Author MOZART the music processor for Windows -
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm



Re: read elements from file by Jerry

Jerry
Wed May 11 09:08:52 CDT 2005

In article <uolmzytUFHA.1384@TK2MSFTNGP09.phx.gbl>,
nobody@nospam_please.com says...
> Hello,
>
> In console application :
> Suppose I have a line in the file, that looks like :
> a b c 123 aa bb cc
>
> Can I read from the file,
> that each single read, read each element.
> (I mean : the first read will read "a", second will read "b", third will
> read "c", and so on "123", "aa", "bb", "cc" ...)

The string extractor does exactly this.

--
Later,
Jerry.

The universe is a figment of its own imagination.