Basic JASM Commands
Category:


1 rating
62 views

Want to add this video to your favorites?
Sign in to VidLii now!
Sign in to VidLii now!
Want to add this video to your playlists?
Sign in to VidLii now!
Sign in to VidLii now!
Want to flag this video?
Sign in to VidLii now!
Sign in to VidLii now!
Date: |
Views: 62 | Ratings: 1 |
Time: | Comments: 1 | Favorites: 1 |
private void write(String file, char[] Data) throws FileNotFoundException {
String filename = file;
FileOutputStream fos = null;
DataOutputStream dos = null;
try {
fos = new FileOutputStream(filename);
dos = new DataOutputStream(fos);
for(char d : Data) {
dos.writeChar(d);
}
}
catch (FileNotFoundException fnfe) {
System.out.println("File not found" + fnfe);
}
catch (IOException ioe) {
System.out.println("Error while writing to file" + ioe);
}
finally {
try {
if (dos != null) {
dos.close();
}
if (fos != null) {
fos.close();
}
}
catch (Exception e) {