Re: READ and delimited format
- From: "dpb" <dpbozarth@xxxxxxxx>
- Date: 27 Dec 2006 10:00:59 -0800
Beliavsky wrote:
Jeremy wrote:....
Is it possible to use READ to read a delimited file? i.e.:
JOHN|DOE|123 MAIN ST.|SMALLTOWN|NJ|USA
JOE|SMITH|1 S. MAIN ST. APT 25|BIGTOWN|CA|USA
With a little work, yes. If you want to store the characters between
"|" in separate strings, you can
(1) Read each line into a large string with an "internal read"
read (iunit,"(a)") text
(2) Loop through "text" to determine the positions of the the
delimiters.
And INDEX() intrinsic may be of help here.
.
- References:
- READ and delimited format
- From: Jeremy
- Re: READ and delimited format
- From: Beliavsky
- READ and delimited format
- Prev by Date: Re: Converting string to Integer, Real, etc...
- Next by Date: Re: READ and delimited format
- Previous by thread: Re: READ and delimited format
- Next by thread: Re: READ and delimited format
- Index(es):
Relevant Pages
|
|