[kepler-dev] Txt File with Kepler

Christopher Brooks cxh at eecs.berkeley.edu
Sat Apr 18 10:23:58 PDT 2009


Hi Subhav,
See
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptIIfaq.htm#reading%20data%20from%20files?

ptolemy.actor.lib.io.FileReader has a PortParameter that takes file or
URL.  What you would need to do is read in the file names as per the
above URL and then pass the individual file name to FileReader.

_Christopher

subhav mital wrote:
> Hello,
> 
> Consider I have a text file of 1 column and n rows. Each of the n rows 
> have a location specified of a file. (Eg: C:\...\..\file.txt) Can this 
> file be given to kepler, so that it somehow reads the data (here 
> location of the file name) in those rows and opens the file specified 
> for each row?
> 
> Please give some suggestions for this.
> 
> Thank you!
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Kepler-dev mailing list
> Kepler-dev at kepler-project.org
> http://mercury.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev

-- 
Christopher Brooks (cxh at eecs berkeley edu) University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841 fax:510.642.2718	      (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 (W-F) 510.655.5480


More information about the Kepler-dev mailing list