hi.
no offense pal, but i don't see your pb.
try that please:
char gtc_DataBaseFilePath[260]="";
GetSystemDate (&month, &day, &year);
Fmt (gtc_DataBaseFilePath, "%s<%s\\%i[w2p0]%i[w2p0]%i[w2p0].txt", tc_ProjectPath, year, month, day);
iFile = OpenFile (gtc_DataBaseFilePath, VAL_WRITE_ONLY, VAL_OPEN_AS_IS, VAL_ASCII);
WriteFile (iFile, "toto", strlen("toto") );
CloseFile (iFile);
it works fine here.
maybee you have a declaration pb.