bug-oleo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

list.c /ascii read in


From: cradeke
Subject: list.c /ascii read in
Date: Thu, 08 Nov 2001 23:32:37 +0100

hi folks

I was intend to use oleo to work with large ascii files formated in
rows&columns, as usual delimited by one or _more_ spaces (' ') . theese
files are consists of about 10 columns and large number of rows (up to
100000). this is often the cas at scientific research centers or
institutes they measure time series of any kind of data... you see a
wide range of use, I know many of such institutes... and I saw that most
of them use unix hardware but have to transfer the data to excel for
evaluation because missing of useable software for that task under
unix...

so I looked round the net and found oleo. at first I said "WOW, what a
nive thing!" and in motif too (second WOW!) 8-)) (I love motif)  - but
then the great disapointment, it could not read simple ascii files.. so
I browesed the code of version  1.99.16 and changed the necessary lines
and added one (line 101 and 102).

I tried at first to set the delimiter in the oleo menue to a "single
space" but nothing happens and oleo crashes while the next trial for
reading in my file. for this I set ' ' fix for the value of sep in line
102. the line above increase the bptr as long as needed until the
position of a value which is not a ' ' in bptr.

I attach list.c with changes. at least I suggest to implement the
routine via cin-operator of c++. this is more comfortable I think
because overloading functions for different types do the job quick and
save for every row in the file to read. at the moment I'm in hurry (do
my exams) so I can't do it myself.. next year I can do it.

hope that helps, now I will look what oleo can do for me.

thanks for oleo!!

bye

c. radeke

reply via email to

[Prev in Thread] Current Thread [Next in Thread]