Re: How to Read csv Files with both Characters and Numbers?
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Thu, 27 Mar 2008 08:33:42 -0700
relaxmike <michael.baudin@xxxxxxxxx> wrote:
- string_split(string,chars,nbcomponent,component) splits....
the given string everytime one character in the chars argument is
found and add it to the array of string "component".
- string_is(string,class) returns false or true if the
given string is an element of the given class, with class
is a string chosen in the list : "integer", "character", string",
"real", "double", etc...
Of course, the basic blocks string_split and string_is do not
exist, therefore one would have to develop it...
....which isn't to hard to do. I've done simillar string utility routines
myself and I use them all the time. The interface to my procedures isn't
exactly as above, but they do follow the basic idea of having string
utility procedures that get used for parsing tasks.
I think that most people who have done much string manipulation in
Fortran have eventually developed such a set of personal string
manipulation tools (or borowed one from someone else). It's just the
"obvious" thing to do once one notices that the same basic tasks keep
coming up. That old "code reuse" buzz phrase; us old Fortraners have
been reusing code from long before the term was popularized.
But then, at a lower level, the procedures use some of the kinds of
techniques discussed here. They just add a slightly higher level of
interface.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- Follow-Ups:
- Re: How to Read csv Files with both Characters and Numbers?
- From: Lars Mossberg
- Re: How to Read csv Files with both Characters and Numbers?
- From: relaxmike
- Re: How to Read csv Files with both Characters and Numbers?
- References:
- How to Read csv Files with both Characters and Numbers?
- From: qquito
- Re: How to Read csv Files with both Characters and Numbers?
- From: glen herrmannsfeldt
- Re: How to Read csv Files with both Characters and Numbers?
- From: Kurt Kallblad
- Re: How to Read csv Files with both Characters and Numbers?
- From: glen herrmannsfeldt
- Re: How to Read csv Files with both Characters and Numbers?
- From: qquito
- Re: How to Read csv Files with both Characters and Numbers?
- From: relaxmike
- How to Read csv Files with both Characters and Numbers?
- Prev by Date: Re: index function problem
- Next by Date: Re: LAPACK string orchestra
- Previous by thread: Re: How to Read csv Files with both Characters and Numbers?
- Next by thread: Re: How to Read csv Files with both Characters and Numbers?
- Index(es):
Relevant Pages
|
|