ds = FILE_DATASPACE(#channel) or
ds = FILE_DATASPACE(‘filename’)
This function returns the current dataspace requirements for the file opened as #channel or for the file which has the name given, in quotes, as filename. If the file is an EXEC’able file (See FILE_TYPE) then the value returned will be the amount of dataspace that that program requires to run, if the file is not an EXEC’able file, the result is undefined, meaningless and probably zero. If the result is negative, there has been an error and the QDOS error code has been returned.
1000 ds = FILE_DATASPACE('flp1_WinBack_exe') 1010 IF ds <= 0 THEN 1020 PRINT "WinBack_exe doesn't appear to exist on flp1_, or is not executable." 1030 ELSE 1040 PRINT "WinBack_exe's dataspace is set to " & ds & " bytes." 1050 END IF