How to export .txt files when running as application in eclipse?
in
Integration and Hardware
•
5 months ago
In eclipse, I want to run as application...
and I can't export txt files then it is running as application...
code:
import java.io.PrintWriter;
import processing.core.PApplet;
public class Test extends PApplet {
static PrintWriter OutTriangle;
public void setup() {
export();
}
public void export() {
System.out.print("export");
OutTriangle = createWriter("Site\\triangles.txt");
OutTriangle.println("111");
OutTriangle.flush(); // Writes the remaining data to the file
OutTriangle.close(); // Finishes the file
stop();
}
public static void main(String args[]) {
PApplet.main(new String[] { "--present", "Test" });
}
}
thx alot!
1