Input a txt file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sneakz
    New Member
    • Jan 2007
    • 1

    #1

    Input a txt file

    Could anyone show me how to input a txt file and view the same txt file? or delete the txt file that was inputted?

    ive searched the net for ages but havent found anything.

    Thanks for any help.
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    What do you mean by input a txt file? Do you mean open an object that will retrieve data from the txt file? Do you mean ask the user which txt file they'd like to open?

    What do you mean by view the txt file at the same time?
    Last edited by Ganon11; Jan 30 '07, 01:05 AM. Reason: Java, NOT CPP

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by sneakz
      Could anyone show me how to input a txt file and view the same txt file? or delete the txt file that was inputted?

      ive searched the net for ages but havent found anything.

      Thanks for any help.
      Instead of searching for a solution you should be reading about how to use Scanner and FileWriter and then try to write the solution yourself. We are willing to help if you are willing to put some effort yourself.

      Comment

      • hirak1984
        Contributor
        • Jan 2007
        • 316

        #4
        nest time please post what code u have tried with.Best of luck.

        Comment

        Working...