# Unable to open vtu files written in fortran in Paraview

**URL:** https://discourse.paraview.org/t/unable-to-open-vtu-files-written-in-fortran-in-paraview/1453
**Category:** ParaView Support
**Created:** [March 13, 2019, 2:07am UTC](https://discourse.paraview.org/t/unable-to-open-vtu-files-written-in-fortran-in-paraview/1453 "2019-03-13T02:07:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vrkssai](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/e19b73/32.png) [@vrkssai](https://discourse.paraview.org/u/vrkssai)
#### Post date: [March 13, 2019, 2:07am UTC](https://discourse.paraview.org/t/unable-to-open-vtu-files-written-in-fortran-in-paraview/1453/1 "2019-03-13T02:07:18Z")

</div>

I’m trying to write a VTU file in fortran for opening in paraview. I had prior experience writing binary vtk legacy files using fortran which worked in paraview, I’m using the same logic to write the VTU files. But the binary files byte order seems to be a problem, because it shows an error “Error Parsing XML file line 5, column 0, byte index 232” on paraview. I’m writing in LITTLE\_ENDIAN . I’m attaching my ascii file, paraview binary file generated using the ascii file and binary file generated from fortran for the same.

ASCII FILE- [https://drive.google.com/file/d/1kZNenoZ8LXHf\_Uo7U4cZ5wBzFutRrlmg/view?usp=sharing](https://drive.google.com/file/d/1kZNenoZ8LXHf_Uo7U4cZ5wBzFutRrlmg/view?usp=sharing)

Binary file for the same generated in paraview- [https://drive.google.com/file/d/1tlFVLR7\_-I1P9-DRqV\_nhJ9OZLZcaBQz/view?usp=sharing](https://drive.google.com/file/d/1tlFVLR7_-I1P9-DRqV_nhJ9OZLZcaBQz/view?usp=sharing)

Binary file I wrote from fortran -[https://drive.google.com/file/d/1UcpS4e2RJwhppHwSMHuEZc\_X0XDclReR/view?usp=sharing](https://drive.google.com/file/d/1UcpS4e2RJwhppHwSMHuEZc_X0XDclReR/view?usp=sharing)

What am I missing? I’m using access=‘stream’,convert=‘Little\_Endian’,format=‘unformatted’ in fortran as I did for legacy vtk files. Could someone point out the mistake?

---

<div class="post-metadata">

### Author: ![vrkssai](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/v/e19b73/32.png) [@vrkssai](https://discourse.paraview.org/u/vrkssai)
#### Post date: [March 14, 2019, 4:57am UTC](https://discourse.paraview.org/t/unable-to-open-vtu-files-written-in-fortran-in-paraview/1453/2 "2019-03-14T04:57:23Z")

</div>

@cory.quammen I have made the necessary changes so that the files are accessible now
