reading values from a text file into a java macro
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 |
[Solved] reading values from a text file...
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.
|
All times are GMT -4. The time now is 03:38. |