Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: reading problem !!

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default reading problem !!

    i don't know why don't read this texet file
     public static void main(String[] args) {
            File f = new File("Ahmed.txt");
            PrintWriter PW = new PrintWriter(f);


  2. #2
    Member
    Join Date
    Dec 2012
    Posts
    38
    My Mood
    Confused
    Thanks
    2
    Thanked 2 Times in 1 Post

    Default Re: reading problem !!

    what is this code supposed to do? I suggest you to post the whole code with some more specific question...

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: reading problem !!

    i begin to write a code which read the file Ahmed.text and it didn't see

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,286
    Thanks
    56
    Thanked 2,372 Times in 2,343 Posts

    Default Re: reading problem !!

    Can you post the code that reads from the file? What you have posted in post#1 does not read anything.

    Read the API doc for the PrintWriter class to see what that class does.
    Java Platform SE 7
    If you don't understand my answer, don't ignore it, ask a question.

  5. The Following User Says Thank You to Norm For This Useful Post:

    ahmed abd elnasser (December 26th, 2012)

Similar Threads

  1. Reading From File Problem
    By Neobs in forum File I/O & Other I/O Streams
    Replies: 10
    Last Post: April 8th, 2012, 11:35 PM
  2. [SOLVED] Problem in File Reading...
    By Mr.777 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 20th, 2011, 08:24 AM
  3. Problem in reading image file
    By ramhanuman in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 3rd, 2011, 03:46 PM
  4. Problem reading from server socket
    By glauber in forum Java Networking
    Replies: 0
    Last Post: February 15th, 2011, 12:54 PM
  5. Problem on reading file in Java program
    By nathanernest in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: April 13th, 2009, 09:14 AM