if(FSInit())
{
//Opening a file in mode "w" will create the file if it doesn't
// exist. If the file does exist it will delete the old file
// and create a new one that is blank.
myFile = FSfopen("T09-11.XLS","w");
//Write some data to the new file.
FSfwrite("PRUEBA DE CONTEO\r",1,17,myFile);
for(cont_x = 0;cont_x<10;cont_x++)
{
FSfwrite(my_string,1,30,myFile);
for(cont_y = 0;cont_y<25;cont_y++)
{
FSfwrite(my_string,1,30,myFile);
}
FSfwrite("\r",1,1,myFile);
}
//Always make sure to close the file so that the data gets
// written to the drive.
FSfclose(myFile);
//Just sit here until the device is removed.
while(deviceAttached == TRUE)
{
USBTasks();
}
}