LOCAL wholefile, handle, fileeof, filebof STORE FOPEN('c:\yourfile.txt') TO handle && Open the file STORE FSEEK(handle, 0, 2) TO fileeof && Move pointer to EOF STORE FSEEK(handle, 0) TO filebof && Move pointer to BOF IF fileeof <= 1 && Is file empty? WAIT WINDOW 'This file is empty!' NOWAIT wholefile = ' ' ELSE && If not empty wholefile = FREAD(handle, fileeof) && Store to memory ENDIF = FCLOSE(handle) && Close the fileHTH