# Importing File Sequence in Mathematica

**URL:** <https://community.wolfram.com/t/importing-file-sequence-in-mathematica/275>\
**Category:** Questions\
**Tags:** material-sciences, physics, mathematica, graphics-and-visualization\
**Created:** [July 26, 2013, 8:59pm UTC](https://community.wolfram.com/t/importing-file-sequence-in-mathematica/275 "2013-07-26T20:59:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aungpp](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@aungpp](https://community.wolfram.com/u/aungpp)\
**Post date:** [July 26, 2013, 8:59pm UTC](https://community.wolfram.com/t/importing-file-sequence-in-mathematica/275/1 "2013-07-26T20:59:42Z")

</div>

Hello World;

I have been trying to make an animation for my research. I have a bunch of prototype output files so called  
output1.txt  
output2.txt  
output3.txt  
output4.txt  
…etc

When I feed those files one at a time, I get stay images. What I would like to do is feed all the files  
in order in every 0.5 seconds, so I will have 2 frames per second but I cannot figure out how to  
update the file sequences in mathematica.This is what I have so far and I am looking for the coding  
to update the files automatically.

```auto
Graphics3D[<< output1.txt]
Graphics3D[<< output2.txt]
Graphics3D[<< output3.txt]
Graphics3D[<< output4.txt]

```

If you have any ideas, please let me know. Thank You.

-P. Aung

---

<div class="post-metadata">

**Author:** ![kisensee](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/kisensee/32/16793_2.png) [@kisensee](https://community.wolfram.com/u/kisensee)\
**Post date:** [July 26, 2013, 9:44pm UTC](https://community.wolfram.com/t/importing-file-sequence-in-mathematica/275/2 "2013-07-26T21:44:09Z")

</div>

I think that the simplest approach to a problem like this would be to bring all the images into Mathematica at once, then animate them using ListAnimate:  
[  
http://reference.wolfram.com/mathematica/ref/ListAnimate.html](http://reference.wolfram.com/mathematica/ref/ListAnimate.html)

ListAnimate has an AnimationRate option which lets you control the frame rate.

If you really must bring in the files one at a time like that, you could probably make it work using RunScheduledTask:

[http://reference.wolfram.com/mathematica/ref/RunScheduledTask.html](http://reference.wolfram.com/mathematica/ref/RunScheduledTask.html)

---

<div class="post-metadata">

**Author:** ![aungpp](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@aungpp](https://community.wolfram.com/u/aungpp)\
**Post date:** [July 26, 2013, 10:23pm UTC](https://community.wolfram.com/t/importing-file-sequence-in-mathematica/275/3 "2013-07-26T22:23:48Z")

</div>

I just listed all the input files using

```auto
ListAnimate[{input.txt,input1.txt,.....}]

```

Thank you very much Karl.  
P. Aung
