How to get Max to read in a .txt file and display the result?

Dekkuran's icon

I have a dictionary of adjectives in a .txt file and I am trying to read them into my Max patch and then display one at random but I haven't been able to find a way to do this in max. Is it possible? If so, how is it done? Thanks in advance!

LSka's icon

Hi dekkuran,
what about [text]?

Max Patch
Copy patch and select New From Clipboard in Max.

Here's an example copied from the helpfile:

Hafiz Atif's icon

Hi
Had you find the solution of your question
If yes please share that with me
Thanks in advance,

bkshepard's icon

Did you look at the [text] help file as LSKA recommended? A "read" message into a [text] object will open a text file in Max.

Barry  Phipps's icon

This is the best example of the text object I've run across. Also trying to solve how to load text files into text objects on the fly. I'd like to use the live.drop object to load files too but haven't solved that mystery yet.

Source Audio's icon

take a look at dropfile help.

specify filetype to avoid errors

when dropping wrong type of files.