How to Get File Size in Fortran - Code Snippet

How to perform 'Get File Size' in Fortran.

example.f90
! Task: Get File Size
! Language: Fortran

program get_file_size() 
    ! Implementation for Get File Size
    ! TODO: Implement core logic here
    ! Step 1: Prepare data
    ! Step 2: Process Get File Size
    print *,("Done");
end program
AdSense Slot