Results 1 to 2 of 2
  1. #1
    GoodThing007 is offline Member
    Join Date
    Dec 2011
    Posts
    34
    Rep Power
    0

    Default Printing from a file?

    I want to print out the contents of a file called statement.txt... How would i go about doing this?

    Any help would be appreciated!

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: Printing from a file?

    Read the file
    Java IO
    Parse as needed, then figure out how to represent the data graphically for printing (if just plain text, one could use one of any number of JTextComponent's available in Swing), then see the following:
    Lesson: Printing (The Java™ Tutorials > 2D Graphics)

Similar Threads

  1. Printing \n to a file
    By fred2028 in forum New To Java
    Replies: 5
    Last Post: 09-15-2011, 08:41 AM
  2. Printing file through browser
    By BobswYourUcle in forum New To Java
    Replies: 5
    Last Post: 07-18-2011, 03:53 PM
  3. Sorting and Printing file
    By spry.chipper in forum New To Java
    Replies: 3
    Last Post: 12-13-2009, 08:15 PM
  4. Printing text file
    By amitcs1001 in forum NetBeans
    Replies: 2
    Last Post: 11-30-2009, 02:17 AM
  5. Job name when printing file
    By pjmorce in forum Advanced Java
    Replies: 3
    Last Post: 12-23-2008, 01:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •