Skip to content

Commit

Permalink
Update ch06-00-file.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler-37 authored Mar 31, 2024
1 parent 8a18f84 commit 6f1afcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ch06-00-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ close(io)
write(*,*)"linenum",n
```
例如通过这样读取文件,就可以判断一个文件的行数。
- 上述方法在文件中有空行的时候就失效了,如果要计算空行的话,则需要下一节的格式化读取。

使用`write`来写入文件,第一个参数是文件的通道号,第二个参数是文件的格式
``` fortran
Expand Down

0 comments on commit 6f1afcf

Please sign in to comment.