是 CARRIAGECONTROL= '无'选择标准 f90 IO?
我想以类似 C 的方式访问文本文件。选项 CARRIAGECONTROL= 'NONE' 显然实现了这一点,根据此页面。它是标准选项吗?
I want to access a text file in a C-like fashion. The option CARRIAGECONTROL= 'NONE' apparently achieves this, according to this page. Is it a standard option ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果“类似 C 的方式”意味着将文件作为字节流读取,那么在 Fortran 2003 之前没有标准方法可以做到这一点。但是许多编译器将其作为扩展提供,例如网页上的 Intel 编译器手册你提到的。
自 Fortran 2003 起,有一种打开文件进行流访问的标准方法:
If by "C-like fashion" you mean read the file as a stream of bytes, there was no standard way to do this before Fortran 2003. However many compilers offered it as an extension, like the manual of the Intel compiler on the webpage you refered to.
Since Fortran 2003, there is a standard way of opening a file for stream access which is
标准选项是 open 语句中的 access='stream'
在 F77 中,这不是标准化的,并且通常依赖于编译器。
The standard option is access='stream' in the open statement
In F77, this was not standardized and often compiler dependent.