Results 1 to 2 of 2
  1. #1
    cachi is offline Member
    Join Date
    Jul 2007
    Posts
    40
    Rep Power
    0

    Default Help with File in java

    Hi, I'm having trouble opening a file.
    I actually have no idea what I'm doing.
    I really want to know how to open one from java.

    Thanks.

  2. #2
    silvia is offline Member
    Join Date
    Jul 2007
    Posts
    35
    Rep Power
    0

    Default

    Please check this:
    Java Code:
    FileReader fr = new FileReader("mydata.txt");
    BufferedReader br = new BufferedReader(fr);

Similar Threads

  1. 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, 09:13 AM
  2. Converting text file(.txt) to JPG file(.jpg) in java
    By javadeveloper in forum Advanced Java
    Replies: 0
    Last Post: 11-09-2007, 04:22 PM
  3. exe File Java
    By cachi in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 01:50 PM
  4. Help with File in java
    By zoe in forum Advanced Java
    Replies: 1
    Last Post: 07-25-2007, 11:16 PM
  5. exe file with Java
    By Heather in forum New To Java
    Replies: 2
    Last Post: 07-03-2007, 04:54 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
  •