more people

This commit is contained in:
benfry
2002-12-28 13:55:13 +00:00
parent 0b23e67756
commit c896b6d7df

View File

@@ -975,8 +975,11 @@ afterwards, some of these steps need a cleanup function
buffer.append('\n');
}
program = buffer.toString();
//System.out.print(program);
textarea.editorSetText(program);
//System.out.print(textarea.getText());
/*
int length = (int) isketchFile.length();
if (length != 0) {
@@ -1085,7 +1088,17 @@ afterwards, some of these steps need a cleanup function
}
makeHistory(s, SAVE);
File file = new File(directory, filename);
try {
System.out.print(s);
BufferedReader reader = new BufferedReader(new InputStreamReader(new ByteArrayInputStream(s.getBytes())));
String line = null;
while ((line = reader.readLine()) != null) {
System.out.println("'" + line + "'");
}
FileWriter writer = new FileWriter(file);
writer.write(s);
writer.flush();
@@ -1806,6 +1819,14 @@ afterwards, some of these steps need a cleanup function
return buffer;
}
/*
static {
String a = "D:\\fry\\processing\\app\\PdeBase.java";
String b = "D:\\fry\\processing\\app\\PdeBase.maybe.java";
copyFile(new File(a), new File(b));
}
*/
static protected void copyFile(File afile, File bfile) {
try {
FileInputStream from = new FileInputStream(afile);