Let's say I can't store information into files.
Is it possible to download a file into an array.


This is what I have now. It saves a download into a file named: file.txt
import std;
import std.net.curl;


void main()
{
    writeln("Hello D");
download("https://gist.githubusercontent.com/deekayen/4148741/raw/98d35708fa344717d8eee15d11987de6c8e26d7d/1-1000.txt";, "file.txt");
}


Also run.dlang.io seems to be blocking and not letting me to run curl requests. I'm feeling sad right now.

https://run.dlang.io/?compiler=dmd&source=import%20std;%0Aimport%20std.net.curl;%0A%0A%0Avoid%20main()%0A%7B%0A%20%20%20%20writeln(%22Hello%20D%22);%0A%20%20%20%20download(%22https:%2F%2Fgist.githubusercontent.com%2Fdeekayen%2F4148741%2Fraw%2F98d35708fa344717d8eee15d11987de6c8e26d7d%2F1-1000.txt%22,%20%22.%22);%0A%7D

Reply via email to