loading 1 string cant even do it
in
Programming Questions
•
3 months ago
What am I doing wrong here? the scores.txt file is sitting in the data folder and outside the data folder within the folder this processing file is located. i hit ctrl z and its the same folder. Why wont this work? The text file has only 1 stringed word. error message: The file "scores.txt" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.
i created the file with the saveStrings() method, so i know its in the correct filetype
String[] collector = loadStrings("scores.txt");
void setup(){
size(400,400);
}
void draw(){
println(collector[0]);
}
i created the file with the saveStrings() method, so i know its in the correct filetype
String[] collector = loadStrings("scores.txt");
void setup(){
size(400,400);
}
void draw(){
println(collector[0]);
}
1