I tried to use
Code: Select all
import java.io.FileWriterCode: Select all
try {
fileWriter = new FileWriter("filename.txt");
} catch (Exception e) {
host.println("file writer open error");
}
Code: Select all
try {
fileWriter.write("some text");
} catch (Exception e) {
host.println("file writer write error");
}
Code: Select all
try {
fileWriter.close();
} catch (Exception e) {
host.println("file writer close error");
}
