|
[Sponsors] |
reading values from a text file into a java macro |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 22, 2008, 18:44 |
reading values from a text file into a java macro
|
#1 |
Guest
Posts: n/a
|
Does anyone know how to read values from a text file (*.csv file exported by the report monitor) into a java macro for STAR-CCM+?
I have tried using the Scanner and the FileInputStream, but honestly I am not sure if I am doing it correctly. I keep getting that the file cannot be found. If anybody happens to have an example doing this, that they wouldn't mind sharing, I would greatly appreciate it. Thanks, Jayson |
|
May 23, 2008, 18:58 |
[Solved] reading values from a text file...
|
#2 |
Guest
Posts: n/a
|
I have figured out how to do it, I needed to read in the text file as a table, and use the java command getTableDataItem(int,int) to read the value into my macro as a String.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF with output text file | manu | Fluent UDF and Scheme Programming | 18 | December 12, 2018 23:46 |
how to put post-processing values in a text file | herve | Siemens | 3 | March 31, 2008 11:07 |
Help: Reading values in derived types for VFortran | Wee | Main CFD Forum | 0 | October 15, 2006 10:39 |
JAVA based .gif file animator | Moritz | Main CFD Forum | 0 | March 20, 2006 11:50 |
How to get each cell value into a text file | Wiroon | FLUENT | 2 | June 28, 2005 10:35 |