Search:

Type: Posts; User: ExtremophileElite

Search: Search took 0.07 seconds.

  1. Replies
    15
    Views
    1,395

    Re: Formatting a text file

    The file must be inputted into the program. Stringbuilder is supposed to format each line. I have no idea how to do this. I don't know how to make the connection between scanner, my inputted text...
  2. Replies
    15
    Views
    1,395

    Re: Formatting a text file

    I've tried using StringBuilder but I don't know how to make it read the lines of my file. Can you please explain this a little bit clearer? I hardly have any experience so just telling me to...
  3. Replies
    15
    Views
    1,395

    Re: Formatting a text file

    Did you read what my instructions are and do you get what they're asking? Could you possibly give me some sample code to just demonstrate formatting the lines?
  4. Replies
    15
    Views
    1,395

    Re: Formatting a text file

    Yes, I've figured out the Printwriter class. Is there a way to take in a bunch of lines and specifying their lengths? My earlier question was how do I use StringBuilder to do this?
  5. Replies
    15
    Views
    1,395

    Re: Formatting a text file

    I was given a text file that I must do what is in the instructions I posted. I don't know how to read in each line(there's a lot of them). I would like to read in the lines and set the lengths.
  6. Replies
    15
    Views
    1,395

    Re: Formatting a text file

    I don't know how to use it, that's my problem. I have absolutely no idea how to format a file with a block of text. Can you give me help with that?
  7. Replies
    15
    Views
    1,395

    Re: Formatting a text file

    I'm unsure on how to use Stringbuilder to do this. I was hoping someone would be able to show me how to continue with this program.
  8. Replies
    15
    Views
    1,395

    Formatting a text file

    I'm trying to follow directions to format a text file but I'm very new at Java and I'm not exactly sure how to do this formatting. Here are the instructions:


    "read in a text file and display...
Results 1 to 8 of 8