# Writing xml vtu files using fortran

**URL:** https://discourse.vtk.org/t/writing-xml-vtu-files-using-fortran/1829
**Category:** Support
**Created:** [September 26, 2019, 11:58am UTC](https://discourse.vtk.org/t/writing-xml-vtu-files-using-fortran/1829 "2019-09-26T11:58:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Giant](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/g/919ad9/32.png) [@Giant](https://discourse.vtk.org/u/Giant)
#### Post date: [September 26, 2019, 11:58am UTC](https://discourse.vtk.org/t/writing-xml-vtu-files-using-fortran/1829/1 "2019-09-26T11:58:15Z")

</div>

I am quite new to both Fortran language and VTK file format.So I have ASCII data(small part of data attached below) and want to write a vtu file for the data. Can someone provide possible guidance or solutions on how to write a fortran code for writing a vtu file

The data is in the following format :

ID | X | Y | Z | R

21477 | 23.763711578028648 | 1.324896330297889 | 21.452167569999407 | 0.001959468036875  
70238 | 8.403958483074112 | 0.437044637286058 | 21.481164606145526 |0.001951512016072  
79911 | 11.506013421238931 | 1.291251006542412 | 20.877113165929117 | 0.002005336477837  
81901 | 6.294721557154659 | 0.591650043829494 | 20.860785905037456 | 0.001979070696389

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mwestphal/32/19_2.png) [@mwestphal](https://discourse.vtk.org/u/mwestphal)
#### Post date: [September 30, 2019, 3:55am UTC](https://discourse.vtk.org/t/writing-xml-vtu-files-using-fortran/1829/2 "2019-09-30T03:55:19Z")

</div>

you can use VTK fortran wrapping.
