I have noticed that there are errors with FS_WriteFile in CircleOS 3.7.  
This code works:
    u8 B[] = {'B','M','Z','U'};
    filepointer = 0;      // Initialize seek pointer 
    FS_Seek(&file_info, filepointer);               // Set file to filepointer
    cr = FS_WriteFile(&file_info,&B, &successcount, 2); //Write data to file
    filepointer += 2;
This does not:
    u8 B[] = {'B','M'};
    filepointer = 0;      // Initialize seek pointer 
    FS_Seek(&file_info, filepointer);               // Set file to filepointer
    cr = FS_WriteFile(&file_info,&B, &successcount, 2); //Write data to file
    filepointer += 2;
The only difference is the length of the array B[].  I found that if I assign B[] 4 bytes then FS_WriteFile() will properly write 2 bytes.  If I assign B[] only 3 bytes then only the first byte gets written.
Has anyone else run into this?
					Last edited by cwstoesz (2009-05-17 17:54:24)