We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a042da7 commit c397280Copy full SHA for c397280
src/stdlib_experimental_io.fypp
@@ -174,16 +174,22 @@ contains
174
!!
175
!! To open a file to read:
176
177
- !! u = open("somefile.txt") # The default `mode` is "rt"
+ !!```fortran
178
+ !! u = open("somefile.txt") ! The default `mode` is "rt"
179
!! u = open("somefile.txt", "r")
180
+ !!```
181
182
!! To open a file to write:
183
184
185
!! u = open("somefile.txt", "w")
186
187
188
!! To append to the end of the file if it exists:
189
190
191
!! u = open("somefile.txt", "a")
192
193
194
character(*), intent(in) :: filename
195
character(*), intent(in), optional :: mode
0 commit comments