Illegal file number You specified a file number outside of the range 1 to 255 in an Open statement. Specify a file number between 1 and 255.