# writing .vtu file from .txt file using fortran

**URL:** https://discourse.paraview.org/t/writing-vtu-file-from-txt-file-using-fortran/2630
**Category:** ParaView Support
**Tags:** vtk
**Created:** [September 26, 2019, 12:05pm UTC](https://discourse.paraview.org/t/writing-vtu-file-from-txt-file-using-fortran/2630 "2019-09-26T12:05:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Shubham\_Belgaonkar](https://discourse.paraview.org/user_avatar/discourse.paraview.org/shubham_belgaonkar/32/2081_2.png) [@Shubham\_Belgaonkar](https://discourse.paraview.org/u/Shubham_Belgaonkar)
#### Post date: [September 26, 2019, 12:05pm UTC](https://discourse.paraview.org/t/writing-vtu-file-from-txt-file-using-fortran/2630/1 "2019-09-26T12:05:24Z")

</div>

I am new to vtk and paraview. I just wanted to know whether there is any library in fortran or code to write .vtu files from ascii file.

ascii data :

ID - X - Y - Y - R  
478020 - 4.842613353612568 - 1.002301828533956 - 0.059424037526047 - 0.001896100188044  
52764 - 5.675549828063824 - 0.628266581799473 - 0.770015644564344 - 0.001913658714257  
50719 - 4.747572506581528 - 0.997547982649714 - 0.117425322732116 - 0.001908391848508  
162065 - 6.664690492030581 - 0.137223049655144 - 0.504865244968465 - 0.001912506196078

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 30, 2019, 3:54am UTC](https://discourse.paraview.org/t/writing-vtu-file-from-txt-file-using-fortran/2630/2 "2019-09-30T03:54:42Z")

</div>

VTK has a fortran wrapping afaik.

---

<div class="post-metadata">

### Author: ![gafopoku](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/50afbb/32.png) [@gafopoku](https://discourse.paraview.org/u/gafopoku)
#### Post date: [December 17, 2020, 6:33pm UTC](https://discourse.paraview.org/t/writing-vtu-file-from-txt-file-using-fortran/2630/3 "2020-12-17T18:33:07Z")

</div>

Hi Mathieu! I am very new to ParaView. I want to know the steps it takes to visualize my results from a fortran code in ParaView. I will appreciate any information that will be of help.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 18, 2020, 2:33pm UTC](https://discourse.paraview.org/t/writing-vtu-file-from-txt-file-using-fortran/2630/4 "2020-12-18T14:33:15Z")

</div>

Please open your own thread and precise your question regarding data format. Ideally, share your file.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [December 18, 2020, 2:33pm UTC](https://discourse.paraview.org/t/writing-vtu-file-from-txt-file-using-fortran/2630/5 "2020-12-18T14:33:18Z")

</div>


