NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
#define LDR_FILEISBUSY   0x8B00

The file is already being used.