Skip to content

Commit

Permalink
Merge pull request fortran-lang#90 from certik/stream
Browse files Browse the repository at this point in the history
Use access = "stream" by default
  • Loading branch information
certik authored Jan 6, 2020
2 parents 57d99f8 + f0a6886 commit e2b0cda
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stdlib_experimental_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,15 @@ integer function open(filename, mode, iostat) result(u)

select case (mode_(3:3))
case('t')
access_='sequential'
form_='formatted'
case('b', 's')
access_='stream'
case('b')
form_='unformatted'
case default
call error_stop("Unsupported mode: "//mode_(3:3))
end select

access_ = 'stream'

if (present(iostat)) then
open(newunit=u, file=filename, &
action = action_, position = position_, status = status_, &
Expand Down

0 comments on commit e2b0cda

Please sign in to comment.