Skip to content

Commit 05540fd

Browse files
committed
Use access = "stream" by default
1 parent 57d99f8 commit 05540fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/stdlib_experimental_io.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,15 +335,15 @@ integer function open(filename, mode, iostat) result(u)
335335

336336
select case (mode_(3:3))
337337
case('t')
338-
access_='sequential'
339338
form_='formatted'
340339
case('b', 's')
341-
access_='stream'
342340
form_='unformatted'
343341
case default
344342
call error_stop("Unsupported mode: "//mode_(3:3))
345343
end select
346344

345+
access_ = 'stream'
346+
347347
if (present(iostat)) then
348348
open(newunit=u, file=filename, &
349349
action = action_, position = position_, status = status_, &

0 commit comments

Comments
 (0)