Thunkable X - Reading file from .txt

@drted I just tried it out myself and got it to work. I thought I was going to access the text file as a JSON object but I ended up just pulling the text and parsing it by newlines as a list.

I pasted the text file contents into GitHub but there’s probably a way to upload a text file directly. Here’s a link to that text in GitHub:

And the sample project that pulls the 5th line from the text file (“was”):

Edit: And I was able to find the upload button and upload a different text file. If you open the sample project from the project link above and change the url to https://raw.githubusercontent.com/tatiang/datasources/main/typing.txt, you’ll get the 5th word/line of that text file, “jumps”.

1 Like