CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: GerhardHolzinger
Forum: OpenFOAM Programming & Development September 7, 2012, 02:34
Replies: 5
Views: 1,976
Posted By GerhardHolzinger
as I wrote in my posting, my code contains some...

as I wrote in my posting, my code contains some pseudocode. There is no function in Matlab called writeLine. Check the matlab help to see how to read and write from files, especially what those...
Forum: OpenFOAM Programming & Development September 6, 2012, 03:53
Replies: 5
Views: 1,976
Posted By GerhardHolzinger
I did no testing, but shouldn't it look rather...

I did no testing, but shouldn't it look rather like this:

fidRead = fopen('myfile.txt');
fidWrite = fopen('b.txt');

for i=1:N
line = fgetl(fidRead);
writeLine(fidWrite);
end
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 13:39.