Skip to content

Commit

Permalink
Use access = "stream" by default
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Jan 6, 2020
1 parent 57d99f8 commit 05540fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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'
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 05540fd

Please sign in to comment.