3 ms·
Borrowing exists to fix this problem, I believe you can do something like this? let f: File := openFile("filename.txt"); writeString(&!f, "first line")
by _dain_ 4y ago
Borrowing exists to fix this problem, I believe you can do something like this?
let f: File := openFile("filename.txt");
writeString(&!f, "first line");
writeString(&!f, "second line");
writeString(&!f, "third line");
closeFile(f);