Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
p.panthersuper
p.panthersuper's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
How to export .txt files when running as application in eclipse?
[2 Replies]
10-May-2013 02:30 AM
Forum:
Integration and Hardware
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!
«Prev
Next »
Moderate user : p.panthersuper
Forum