Skip to content

Commit

Permalink
2021-04-12
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramTraveler committed Apr 12, 2021
1 parent b03540e commit 52bdc92
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions src/PenData.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,33 +318,10 @@ public void SaveInformation() throws IOException {
for (int i = 0; i < shift.size(); i ++) {
saveText += shift.get(i) + ",";
}
System.out.println(shift.size());
//System.out.println(shift.size());
saveText += "\n";
csv.write(saveText.getBytes("GBK"));
csv.close();

//以下是记录测试
/*File temp = new File("demo.csv");
RandomAccessFile c = new RandomAccessFile(temp, "rw");
int a[] = {10, 11, 12, 12, 12, 10};
String s = "";
int len = (int)temp.length();
c.skipBytes(len + 3);
for (int i = 0; i < a.length; i ++) {
/*if (i == a.length - 1) {
s = a[i] + "," + "\n";
}else {
s = a[i] + ",";
}*/

/*
s = a[i] + len + ",";
c.write(s.getBytes("GBK"));
}
s = "\n";
//System.out.println(s);
c.write(s.getBytes("GBK"));
c.close();*/
}

}

0 comments on commit 52bdc92

Please sign in to comment.