How to find the size of file which is in application server...
i want to find the size of the file which is in application server?
is there any FM to find the size of the file?
p_file = '\tmp\source.txt'.
OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
IF sy-subrc = 0.
?----find the size of the file which is open ?
Thanks in Advance.
Try this way.
DATA filesize TYPE epsf-epsfilsiz.
CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
file_name = 'llbdbase.dat'
dir_name = '/tmp/'
file_size = filesize.
WRITE: 'File size' , filesize.