[Gambas-user] which is the most close to file_get_contents ?

Benoît Minisini g4mba5 at gmail.com
Sat Dec 12 20:13:17 CET 2020


Le 11/12/2020 à 18:15, PICCORO McKAY Lenz a écrit :
> in php we have too many generic helpers, functions etc.. so maybe php 
> programers are very lazy.. but php have those easy touse things like 
> https://www.php.net/manual/en/function.file-get-contents.php
> 
> it does not care if are a file or url.. just use it and get json output..
> 
> is there something similar in gambas? for both desktop or web?
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 

You have File.Load() to load a file into a string. Otherwise you can 
download a file through 'http' or 'https' with HttpClient.Download().

Regards,

-- 
Benoît Minisini


More information about the User mailing list