|
[Sponsors] |
reading values from a text file into a java macro |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
#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.
|
|
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF with output text file | manu | Fluent UDF and Scheme Programming | 18 | December 12, 2018 22:46 |
how to put post-processing values in a text file | herve | Siemens | 3 | March 31, 2008 10:07 |
Help: Reading values in derived types for VFortran | Wee | Main CFD Forum | 0 | October 15, 2006 09:39 |
JAVA based .gif file animator | Moritz | Main CFD Forum | 0 | March 20, 2006 10:50 |
How to get each cell value into a text file | Wiroon | FLUENT | 2 | June 28, 2005 09:35 |