Skip to main content

SaveSystem.DownloadFile

Declaration#

public void DownloadFile(string url, string filename, Nullable<DateTime> setTimestamp)

Parameters#

NameDescription
urlURL of file to download
filenameFull path to save location
setTimestampDate/Time to set on file

Description#

Download a file to disk

Usage#

Example
using NullSave.GDTK;using System;using System.IO;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod()    {        // You can use the system to download a file        // This is helpful for cloud storage        SaveSystem.instance.DownloadFile("https://nullsave.com/assets/img/favicon.ico", Path.Combine(Application.persistentDataPath, "favicon.ico"), DateTime.Now);    }
}