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: convert characters while writing into outputfile

  1. #1
    Junior Member
    Join Date
    Jan 2019
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default convert characters while writing into outputfile

    Hello, I have an input_filename which says hello world.

    In the output file named output_filename, I have to read the input_filename and convert those exact words as upper case.eg: output file name contains HELLO WORLD.

    Please tell me how do I do that.

    PS : my code logic is different ,I am just asking this as an example to know, how do I read from a file and convert characters and then write it to output_filename.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: convert characters while writing into outputfile

    Can you post your current code to show what you have tried?
    how do I
    read from a file and >>>>> See the Scanner class.
    convert characters and >>> See the String class
    then write it to output_filename. >>>>>>>> See the PrintWriter class
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Eliminating Unicode Characters and Escape Characters from String
    By bilalonjavaforum in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 19th, 2013, 05:26 AM
  2. How to replace characters in Array with user input Characters
    By gdoggson in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 4th, 2013, 05:53 AM
  3. Writing an Action Event in a Jpanel to convert user text entered in a textField to uppercase
    By veryNoviceProgrammer in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 24th, 2013, 07:48 PM
  4. help with detecting certain characters
    By goochasauras in forum What's Wrong With My Code?
    Replies: 3
    Last Post: September 27th, 2012, 03:30 PM
  5. [SOLVED] Writing Integers to .txt File; Returning Random Characters Instead of Integers
    By verbicidalmaniac in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 8th, 2011, 09:42 PM

Tags for this Thread