HOW does it work?
the easiest way is to write a file, is by using the preset class FileWriter
- create a standard main-program setup
a small example as this does not necessarily need a constructor
- preset exception class, for example IOException
- create a FileWriter object
- If you want to make your code more efficient: import BufferWriter and create a BufferedWriter object
- create the value for the variables :