Reading the contents of a remote file without writing it locally

182 views Asked by At

I am using getFile() to get a file from a server and this works fine.

But would it be possible to get the contents of a file on the server and put it in a variable instead of saving it first locally?

1

There are 1 answers

0
Sander_P On

Doesn't seem to be a feature so I used @madflow 's advice and used execCommand and cat