Results 1 to 3 of 3
  1. #1
    falsealarm is offline Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    0

    Default How can I let someone choose the name of a file for my program to read?

    How can I let someone choose the name of a file for my program to read?
    I know how to do the basics of getting input from the keyboard, but how does it work with files?

    I basically want to prompt them to enter the name of the file, and then be able to use that file in my while loop afterwords.

    any help would be greatly appreciated.

  2. #2
    falsealarm is offline Member
    Join Date
    Apr 2009
    Posts
    2
    Rep Power
    0

    Default

    never mind i figure it out

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    If you search the forum, there are lots of similar questions are already discussed. And on the web too.

    Anyway, better to mark the thread solved, because you've already find the solution.

Similar Threads

  1. Program where the user can choose the algorithm
    By le_albina@hotmail.com in forum New To Java
    Replies: 1
    Last Post: 03-18-2009, 05:45 AM
  2. Replies: 0
    Last Post: 02-11-2009, 10:53 AM
  3. Replies: 5
    Last Post: 02-05-2009, 11:28 AM
  4. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 AM
  5. How to read a Web Page through java program
    By JavaBean in forum Java Tip
    Replies: 0
    Last Post: 10-04-2007, 10:31 PM

Posting Permissions

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