Text File URL Reading Question
in
Programming Questions
•
7 months ago
Ive been messing around with trying to read files in processing and i'm not having any luck. Ive been trying to follow some examples and stuff but I cant get it.
When I use this code it just prints all kinds of junk stuff. Can processing even read a google doc from URL?:
- void setup() {
- size(50, 50);
- }
- void draw() {
- String lines[] = loadStrings("https://docs.google.com/document/d/1RbNheA0RyCmbv4livVtoiHjGraNCQEZM2hfWuZdCwsk/pub");
- for (int i = 0 ; i < lines.length; i++) {
- println(lines[i]);
- }
- }
also im trying to use the command
- char a = lines.charAt(0);
but it says it cant do that with a String[]. Is there another command that might work the same?
1