Jason Dusek wrote:

> How do you read in the IOUArray? By parsing a character string
> or do you treat the file as binary numbers or ... ?

I always pare the file. Parsing the file has the advantage of alowing me to 
have files of any format. In general, in homeworks, TA generate files using 
different tools.  For instance, a professor of electrical protection of 
hardware made a lot of measurements of transient currents due to lightning. The 
file has thousands of three column lines, each one containing time, voltage and 
current.  Students are supposed to read the file, and plot voltage and current 
time series. Even the numbers are in a strange format... So, one needs to parse 
the file.

--- On Tue, 11/3/09, Jason Dusek <jason.du...@gmail.com> wrote:

From: Jason Dusek <jason.du...@gmail.com>
Subject: Re: [Haskell-cafe] Arrays in Clean and Haskell
To: "Philippos Apolinarius" <phi50...@yahoo.ca>
Cc: haskell-cafe@haskell.org
Received: Tuesday, November 3, 2009, 9:31 PM

  How do you read in the IOUArray? By parsing a character string
  or do you treat the file as binary numbers or ... ?

--
Jason Dusek



      __________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to