Read a downloaded file

New releases and general discussions.

Post » Fri Nov 22, 2013 6:55 pm



Hi everyone,,

As you certainly know, there's a plugin named "Download" in the "Internet" group.
Very simple to use.
But now... How to READ the downloaded file?
If for exemple I use this plugin to download www.site.com/file.txt, and I want CC to extract the information contained in that txt document and let me do some comparisons, how do I need to proceed?

Thanks in advance.

Regards.Lapstern2013-11-22 19:14:23
B
5
S
1
Posts: 36
Reputation: 653

Post » Sun Nov 24, 2013 4:25 am

Hi Lapstern, if you're just looking to open plain text files you can usually use the File object action: File.LoadFileToString(AppPath & "your file.txt") to load it all into one long string (eg: drop it into a multi-line edit box or something).

That should work for plain text!
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
125
S
42
G
17
Posts: 2,230
Reputation: 19,922


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron