CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2008, 18:44
Default reading values from a text file into a java macro
  #1
Jayson Martinez
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
  Reply With Quote

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

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 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


All times are GMT -4. The time now is 00:47.