Readfile returns nothing

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Posts: 1
Joined: Tue May 12, 2020 5:18 pm

Readfile returns nothing

Post by Squirrel » Tue May 12, 2020 5:20 pm

I am trying to read in a JSON output file from CURL. It's 45k Readfile simply returns a blank line in the variable watch list. The variable does not get created. I have tried changing the directory of the file, renaming the file etc. It cannot open it. I had this happen before but I can't recall the solution. Thanks

User avatar
Marcus Tettmar
Site Admin
Posts: 7191
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK

Re: Readfile returns nothing

Post by Marcus Tettmar » Wed May 13, 2020 8:44 am

Very long lines may look blank in the watchlist. But the data is there. If you were to output it you should see it:

Do something like this and see if you see the text:

Marcus Tettmar |

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts