Abbey Workshop | ||||||||||
This short piece of code demonstrates how to write a text file in Java and setting a code page. The PrinterWriter class contains a number of methods for outputting text to a file. The OutputStreamWriter class specifies the code page for the text file. The PrinterWriter class wraps this class. In turn, the OutputStreamWriter class wraps a FileOutputStream class which creates the handle to an actual file.
Download source for: WriteTextCodePage.java
Copyright © Abbey Workshop 2006