# Tab formatting with stream access

**URL:** <https://fortran-lang.discourse.group/t/tab-formatting-with-stream-access/5466>\
**Category:** Help\
**Created:** [March 29, 2023, 5:11pm UTC](https://fortran-lang.discourse.group/t/tab-formatting-with-stream-access/5466 "2023-03-29T17:11:34Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![JerryD](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/jerryd/32/393_2.png) [@JerryD](https://fortran-lang.discourse.group/u/JerryD)\
**Post date:** [April 14, 2023, 7:28pm UTC](https://fortran-lang.discourse.group/t/tab-formatting-with-stream-access/5466/46 "2023-04-14T19:28:20Z")

</div>

I am working on changing gfortran. See PR109358. I hope I am interpreting all this correctly.

[https://gcc.gnu.org/bugzilla/show\_bug.cgi?id=109358](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109358)

---

<div class="post-metadata">

**Author:** ![sblionel](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/sblionel/32/853_2.png) [@sblionel](https://fortran-lang.discourse.group/u/sblionel)\
**Post date:** [April 14, 2023, 7:53pm UTC](https://fortran-lang.discourse.group/t/tab-formatting-with-stream-access/5466/47 "2023-04-14T19:53:32Z")

</div>

I submitted a bug report to Intel, ID 05819114.

---

<div class="post-metadata">

**Author:** ![RonShepard](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@RonShepard](https://fortran-lang.discourse.group/u/RonShepard)\
**Post date:** [April 14, 2023, 8:53pm UTC](https://fortran-lang.discourse.group/t/tab-formatting-with-stream-access/5466/48 "2023-04-14T20:53:52Z")

</div>

> [@sblionel](#):
>
> I don’t think it’s correct to say that “Fortran does not allow opening a formatted file as unformatted (or vice versa)”, but the effect of doing so is implementation dependent.

This is correct. My choice of wording was more limiting. The way to try to answer this is given by the `formatted=` and `unformatted=` keywords of an inquire statement of that file. The possible return values are ‘YES’, ‘NO’, or ‘UNKNOWN’. Especially for an unopened file, a processor is allowed to return ‘YES’ for both values, or ‘UNKNOWN’ for both values. My reply considered only the exclusive case, ‘YES’ for one and ‘NO’ for the other, which is typical for a file that is currently open.

---

<div class="post-metadata">

**Author:** ![sblionel](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/sblionel/32/853_2.png) [@sblionel](https://fortran-lang.discourse.group/u/sblionel)\
**Post date:** [July 10, 2024, 10:59pm UTC](https://fortran-lang.discourse.group/t/tab-formatting-with-stream-access/5466/49 "2024-07-10T22:59:51Z")

</div>

I have confirmed that Intel fixed the reported stream I/O bug in the latest 2024.2 release.

[Previous page](https://fortran-lang.discourse.group/t/tab-formatting-with-stream-access/5466.md?page=2)
