Results 1 to 4 of 4

Thread: File Help

  1. #1
    Acaul is offline Member
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0

    Default File Help

    Hi, new to the forums and need some help.

    I'm trying to load a .txt file which contains several thousand words, the reason for this is that for the rest of the program you will be asked to enter 8 consonants or vowels and then the program will read the .txt file and print the longest word that it can make from the letters you entered.

    I'm using eclipse and have only been learning Java for a couple of weeks and so far all code I've seen for loading a .txt file seems really complicated (to me)

    Any help would be great as I'm sort of stuck at the minute.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,879
    Rep Power
    8

    Default Re: File Help

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

  4. #4
    Acaul is offline Member
    Join Date
    Nov 2012
    Posts
    4
    Rep Power
    0

    Default Re: File Help

    Thank you for the help you provided, sorry I didn't reply sooner. It turns out we are using a class called TextIO on my course which has TextIO.readFile which makes loading a file easy. Thank you anyway as I will have to learn the way you both linked to at some point.

Similar Threads

  1. Replies: 15
    Last Post: 02-16-2012, 03:43 PM
  2. Replies: 6
    Last Post: 12-01-2010, 05:31 AM
  3. Replies: 8
    Last Post: 02-18-2010, 12:54 PM
  4. Replies: 0
    Last Post: 02-11-2009, 09:53 AM
  5. Replies: 7
    Last Post: 05-23-2008, 03:46 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
  •