I'm trying to write a data import script. The plan is to use normal Windows file i/o to open the text file containing the data to import and filling in the TICK struct.

I've tried writing a very simple lite C script to do Windows file i/o but I keep getting syntax errors during compile.

Here's an example:

Code:
#include <litec.h>
#include <stdio.h>
#include <windows.h>

function run()
{
	FILE *fp=fopen("test.txt","w");
	fclose (fp);
}



Here is a dump of the Zorro message window:

Code:
Zorro 1.02 Trading Automaton 
Made with GamestudioŽ by oP group 2012

FXCM.dll opened
IB.dll opened

forexite_import compiling..
Error in 'stdio.h' line 23: 
syntax error
< typedef struct _iobuf FILE;
 >
.


Last edited by stevegee58; 10/28/12 12:54.