# Loading multiple .tsp or plain .txt files 70+ located in a directory

**URL:** <https://discourse.processing.org/t/loading-multiple-tsp-or-plain-txt-files-70-located-in-a-directory/23908>\
**Category:** Beginners\
**Created:** [September 17, 2020, 12:50am UTC](https://discourse.processing.org/t/loading-multiple-tsp-or-plain-txt-files-70-located-in-a-directory/23908 "2020-09-17T00:50:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChipperActual](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chipperactual/32/10614_2.png) [@ChipperActual](https://discourse.processing.org/u/ChipperActual)\
**Post date:** [September 17, 2020, 12:50am UTC](https://discourse.processing.org/t/loading-multiple-tsp-or-plain-txt-files-70-located-in-a-directory/23908/1 "2020-09-17T00:50:41Z")

</div>

Hey All  
Very green with JS, stuck on how to load/read multiple files located within a directory(over 70 of them) was able to load one with the preload function ‘loadStrings’, any assistance would be much appreciated.

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [September 19, 2020, 5:02pm UTC](https://discourse.processing.org/t/loading-multiple-tsp-or-plain-txt-files-70-located-in-a-directory/23908/2 "2020-09-19T17:02:53Z")

</div>

[Here](https://editor.p5js.org/noelpil/sketches/nH48UBlU1) a link of code to load multiple images. Just modify the extension.
