gaImportFile(string)

Syntax

gaImportFile(string)

Example

img = ofImage()
// remember to copy an image named xxx.jpg
// inside the data folder of your previously saved
// current sketch
imgPath = gaImportFile("xxx.jpg")

function setup()
    img:loadImage(imgPath)
end

function draw()
    gaBackground(0.0,0.6)

    ofSetColor(255)
    img:draw(0,0)
end

Description

This function provides a direct access to the data/ folder of the opened GAmuza sketch, and all his content (read/write/delete). The sketch must be saved, have his data folder present, and the file specified inside, in order to work.

Parameters

string

Returns

«String, The absolute path to the file specified inside your opened example data/ folder.