function onload()
	{
		try
		{
			var loader = new ObjectLoader();

			var program;

			if (binary === true)
			{
				var pson = new StaticPair();
				var data = pson.decode(reader.result);
				program = loader.parse(data);
			}
			else
			{
				program = loader.parse(JSON.parse(reader.result));
			}

			Editor.setOpenFile(file);
			Editor.setProgram(program);

			Editor.alert(Locale.projectLoaded);
		}
		catch (e)
		{
			Editor.alert(Locale.errorLoadingFile + "\n(" + e + ")");
			console.error("nunuStudio: Error loading file", e);
		}

		modal.destroy();
	}
Load program from file.

Programs can be stored as textual json files, or PSON files (binary).

@static
@method loadProgram
@param {File} file
@param {boolean} binary Indicates if the file is binary.