@jasen
In p5.js, you can save strings to a specific location using the createWriter() function to create a new file and write the string to it. Here's an example of how you can save a string to a specific location:
1
|
let myString = "Hello, World!"; |
1 2 3 4 5 6 7 |
function setup() { createCanvas(400, 400); let writer = createWriter('myFile.txt'); writer.print(myString); writer.close(); } |
Remember to be cautious when saving files using p5.js, as it requires permission from the user to download files to their local machine.