shangrilla
Programmer
The file(file name and path is stored in unarcfile) has data in it, but the file size is still being shown as o. What could be wrong?
If NOT (unarcfile == '')
Store FOPEN(unarcfile) TO file_handle && Open the file
Store FSEEK(file_handle, 0, 2) TO ifp_size && Move pointer to EOF
Store FSEEK(file_handle, 0) TO ifp_top && Move pointer to BOF
wait window str(ifp_size)
If ifp_size <= 0 && Is File empty?
Wait WINDOW 'This file is empty!' NOWAIT
Else
** load file
endif
endif
If NOT (unarcfile == '')
Store FOPEN(unarcfile) TO file_handle && Open the file
Store FSEEK(file_handle, 0, 2) TO ifp_size && Move pointer to EOF
Store FSEEK(file_handle, 0) TO ifp_top && Move pointer to BOF
wait window str(ifp_size)
If ifp_size <= 0 && Is File empty?
Wait WINDOW 'This file is empty!' NOWAIT
Else
** load file
endif
endif