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 2 of 2

Thread: FileReader and FileWriter

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default FileReader and FileWriter

    Hi,

    I want to read in a text file(list of Names) using FileReader than Write to another file using FileWriter. Using FileWriter, I only want to write the Name starting with F to a new text file. I have the file reading from one text than writing to another text. The tricky part is filtering the names starting with only F. Any Idea on how I should be doing this? Any help will be deeply appreciated.

    Thank you,
    Java_Student


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    6,289
    My Mood
    Mellow
    Thanks
    252
    Thanked 777 Times in 762 Posts

    Default Re: FileReader and FileWriter

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
    The tricky part is filtering the names starting with only F.
    Review the String API for methods that can help you do what you've described.

Similar Threads

  1. [SOLVED] Problem with FileWriter
    By justyStepi in forum What's Wrong With My Code?
    Replies: 7
    Last Post: September 29th, 2013, 12:49 PM
  2. How to set character encoding of FileWriter
    By gkokaisel in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: December 8th, 2012, 03:06 PM
  3. [SOLVED] Fliereader/Filewriter (Need Help!)
    By Techsam in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 12th, 2012, 09:22 PM
  4. Using the fileReader?
    By malconrhymes in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 26th, 2011, 05:47 AM
  5. FileReader help
    By bibboorton in forum What's Wrong With My Code?
    Replies: 6
    Last Post: September 5th, 2010, 08:29 AM