# Draw from text file not working as expected

**URL:** <https://discourse.processing.org/t/draw-from-text-file-not-working-as-expected/8498>\
**Category:** Coding Questions\
**Created:** [February 18, 2019, 1:22am UTC](https://discourse.processing.org/t/draw-from-text-file-not-working-as-expected/8498 "2019-02-18T01:22:13Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [February 24, 2019, 12:27am UTC](https://discourse.processing.org/t/draw-from-text-file-not-working-as-expected/8498/22 "2019-02-24T00:27:08Z")

</div>

> [@socraticbot](#):
>
> Is there a way to put each of those “print” messages into the bottom corner of the window as it progresses? I’d like to display those without the console eventually.

> **[text() / Reference](https://processing.org/reference/text_.html)**
>
> Draws text to the screen. Displays the information specified in the first parameter on the screen in the position specified by the additional parameters. A default font will be used unless a font is s…

* * *

> [@socraticbot](#):
>
> Yes it seems it doesn’t like certain image files or their location as it won’t open some

that would have to checked, but as i say, .png and .jpg work with  
loadImage(infile)

> **[loadImage() / Reference](https://processing.org/reference/loadImage_.html)**
>
> Loads an image into a variable of type PImage. Four types of images ( .gif, .jpg, .tga, .png) images may be loaded. To load correctly, images must be located in the …

and again, as much for certain applications ( a image viewer / a music player )  
the open file manager might be useful  
after i clicked 20 times to get the same file  
i disabled it  
and go the usual processing way!  
work with one file ( while you develop the program ) and put it in  
data/mypic.jpg  
point is also if you do project “save as”, like for work on a other revision…  
all stuff gets copied,  
also when you look a month later into the project,  
the image, the pdf, the position.txt fit together…

* * *

---

<div class="post-metadata">

**Author:** ![socraticbot](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@socraticbot](https://discourse.processing.org/u/socraticbot)\
**Post date:** [February 25, 2019, 4:21pm UTC](https://discourse.processing.org/t/draw-from-text-file-not-working-as-expected/8498/23 "2019-02-25T16:21:52Z")

</div>

Here’s the result so far. Thank you so much for your help kll and hotfooted!

[Demo video (YouTube)](https://www.youtube.com/watch?v=RuxgDCogj7Q)

[Previous page](https://discourse.processing.org/t/draw-from-text-file-not-working-as-expected/8498.md?page=1)
