posted 13 years ago
hey Guys i am not good with file input output operations. Here i have a code which generates an airfoil. The coordinates for the airfoil are entered manually in the code. But now i want them to be entered through a file. So now i have created a text file with coordinates which are of double data type.
i have created the text file as follows
ex:
0.32341,0,434334,4.34343,0.323242.......
0.344343,9.34342342,4.32342,2.342234......
the text file has only 2 rows and 100 columns elements seperated by commas. Please let me know whether the text file i have created is correct or not. Also i have made some additions to the code that i have attached below. But there are errors in it. Can some one help me out with this???
[\CODE]
the coordinates are nothing but the ones mentioned above as "cds" which is a 2D array. i need to read the coordinates from the text file and then assign it to cds so that the code works fine as i change the text file.
Please help me out with this.
Thanks in advance......