How do I read text from file?

Get help using Construct 2

Post » Wed Mar 11, 2015 1:07 pm

Hello!

I am a beginner with Construct 2. We made a project which needs to read a file and then does somethings with what it reads. So we created a web page and we read it with the AJAX plugin. Now we want to make this work offline, so we need to read not a web page but a .txt file with the same content.
I created this file and I added it on the project files. Then I changed the AJAX request to "Request project file", but it isn't working.

Did I miss something?

Thanks,
Kirbendo
B
3
Posts: 2
Reputation: 179

Post » Wed Mar 11, 2015 11:46 pm

I would like to be able to read .txt files too.
B
7
S
1
Posts: 53
Reputation: 535

Post » Thu Mar 12, 2015 8:19 am

Works OK for me - see attached.
You do not have the required permissions to view the files attached to this post.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,555
Reputation: 60,454

Post » Thu Mar 12, 2015 9:51 am

Thank you, it works very well!
We just forgot "txtfile" in the AJAX request.
B
3
Posts: 2
Reputation: 179


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 9 guests