84 FUNCTION get_lun()
RESULT( Lun )
97 IF ( .NOT.
file_open( lun ) )
EXIT lun_search
140 INTEGER,
INTENT( IN ) :: fileid
142 INQUIRE( unit = fileid, exist = existence )
147 CHARACTER( * ),
INTENT( IN ) :: filename
149 INQUIRE( file = filename, exist = existence )
191 INTEGER,
INTENT( IN ) :: fileid
193 INQUIRE( unit = fileid, opened = is_open )
198 CHARACTER( * ),
INTENT( IN ) :: filename
200 INQUIRE( file = filename, opened = is_open )
258 CHARACTER(*),
INTENT(IN) :: filename
259 CHARACTER(*),
OPTIONAL,
INTENT(IN) :: nocomment
260 INTEGER,
OPTIONAL,
INTENT(IN) :: noblank
266 CHARACTER(1) :: cchar
267 LOGICAL :: skipcomment
269 CHARACTER(5000) :: buffer
280 skipcomment = .false.
281 IF (
PRESENT(nocomment) )
THEN 282 IF ( len(nocomment) > 0 )
THEN 283 cchar = nocomment(1:1)
289 IF (
PRESENT(noblank) )
THEN 290 IF ( noblank /= 0 ) skipblank = .true.
295 IF ( fileid < 0 )
RETURN 296 OPEN( fileid, file = filename, &
298 access =
'SEQUENTIAL', &
299 form =
'FORMATTED', &
302 IF ( io_status /= 0 )
RETURN 311 READ( fileid, fmt =
'( a )', &
312 iostat = io_status ) buffer
315 IF ( io_status > 0 )
THEN 321 IF ( io_status < 0 )
THEN 327 IF ( skipcomment )
THEN 328 IF ( buffer(1:1) == cchar ) cycle count_loop
332 IF ( skipblank )
THEN 333 IF ( len_trim(buffer) == 0 ) cycle count_loop
logical function file_open_by_unit(FileID)
logical function file_name_exists(Filename)
integer function, public get_lun()
logical function file_unit_exists(FileID)
integer function, public count_lines_in_file(Filename, NoComment, NoBlank)
logical function file_open_by_name(Filename)