CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Siemens

reading values from a text file into a java macro

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 22, 2008, 17:44
Default reading values from a text file into a java macro
Jayson Martinez
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.


  Reply With Quote

Old   May 23, 2008, 17:58
Default [Solved] reading values from a text file...
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.
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF with output text file manu Fluent UDF and Scheme Programming 15 December 11, 2017 11:20
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 11:50
How to get each cell value into a text file Wiroon FLUENT 2 June 28, 2005 09:35

All times are GMT -4. The time now is 19:05.