Reference

Class

RiMarkov

Name

loadFrom

Description Loads raw text into the object from one or more files/URLs
Syntax
loadFrom(fileOrURL);
loadFrom(fileOrURL, option);
Parameters
String or ArrayFile or URL from which to load the file
Function or Object (optional)If a function is supplied (in JavaScript), it will be called after the file is loaded.
If a PApplet(in Java) is passed, it will be used to locate and check the 'data' folder of the sketch for the specified file
Returns
RiMarkovthis RiMarkov
Example
rm = new RiMarkov(3);
rm.loadFrom("http://www.rednoise.org/rita/examples/data/wittgenstein.txt");
Platform Delegates to RiTa.loadString() to load. To check if the object has finished loading, check RiMarkov.ready().