this command is used to calculate and analysis the characteristic of the entities. i just started and i'm facing some problems.
-WRITE DATAFILE INTEGER, how should i write?
-how i am going to update the a info without to delete or affect others or duplicate them?
OPEN DATAFILE TO WRITE 1,"12.csv"
WRITE DATAFILE STRING 1,"NUMBER OF ENTITIES,CATEGORIES,STARTPOINT,ENDPOINT,START TIME,END TIME,TIME TAKE"
FOR I=1 TO ENTITIES
REM BORN THE ENTITIES
CREATEENTITIES(I)
REM RESET STARTING POINT
STARTPOINTF(I,WIDTH#,HEIGHT#,DEPTH#)
REM DATABASE - INPUT THE BASIC INFO
WRITE DATAFILE INTEGER 1,%d,%d,%d,%d,"I,CATEGORIES(I),STARTPOINT(I),ENDPOINT(I)
NEXT I
But it jam at the WRITE DATAFILE INTEGER..how should i write? as i used
Quote: "
WRITELN LOG "%d,%d,%d,%d",I,CATEGORIES(I),STARTPOINT(I),ENDPOINT(I)"
it worked.
i only will know the start time, end time and time taken when the command go into loop function, but if i put the WRITE DATAFILE INTEGER in that loop function, it might keep on duplicate the info. so i dunno how and where to WRITE FILE or UPDATE..
Thanks..