Skip to content

Commit e2b0cda

Browse files
authored
Merge pull request #90 from certik/stream
Use access = "stream" by default
2 parents 57d99f8 + f0a6886 commit e2b0cda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stdlib_experimental_io.f90

+3-3
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'
340-
case('b', 's')
341-
access_='stream'
339+
case('b')
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)