[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading a file
From: |
Paul Kienzle |
Subject: |
Re: Reading a file |
Date: |
Fri, 2 Aug 2002 15:05:09 -0400 |
Try textread from octave-forge (http://octave.sf.net)
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/octave/octave-forge/main/io/textread.m?rev=HEAD
Paul Kienzle
address@hidden
On Fri, Aug 02, 2002 at 06:38:26PM -0000, Pruitt Dave W Contr AEDC/SVT wrote:
> Sorry for the dumb question, but I'm stuck.
>
> I need to read a file with records like:
>
> filename1234 11:11 0 A
> filename5678 12:12 0 A
> .
> .
> .
>
> I want to read the first element as a string ( to be used as a filename),
> the second element as a string to be parsed to hours and minutes, the third
> element as an integer, and the fourth element as a simple character.
>
> I've tried multiple constructions of fscanf and I just can't get it done.
> Not sure what I'm missing in my understanding of fscanf.
>
> Any help would be appreciated.
>
> David W. Pruitt, PhD
> Sverdrup Technology, Inc.
> 939 Avenue C
> Arnold AFB, TN 37389-9900
> address@hidden
> 931-454-3130 (DSN 340-)
> 931-454-4611 FAX
>
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
>
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Reading a file, Pruitt Dave W Contr AEDC/SVT, 2002/08/02
- Re: Reading a file,
Paul Kienzle <=