View RSS Feed

penguinCoder

  1. File Input Output Cheat Sheet

    by , 10-30-2012 at 05:18 AM
    File Input Output Cheat Sheet

    Importing Libraries
    The primary library that deals with files:
    Java Code:
    import java.io.File;
    The library that deals with writing to files:
    Java Code:
    import java.io.PrintWriter;

    FYI
    If there is more then one type of information that is being transferred to or from a file, it is usually best to use a record; IMO.


    Writing to a File

    Declare ...