Results 1 to 3 of 3

Thread: Parse error

  1. #1
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Posts
    111
    Rep Power
    0

    Default Parse error

    I'm getting a really annoying parse error when I try to generate CSD. I really don't know why I'm getting this error.

    The compiler is telling me it's at this line:

    Java Code:
    PrintStream outfile = new PrintStream(new FileOutputStream((filename.getText()) + ".txt"), true);
    Does anybody know what's wrong with this?

    Eric

  2. #2
    Daniel is offline Member
    Join Date
    Jun 2007
    Posts
    91
    Rep Power
    0

    Default

    What error are you getting?

    I'm not sure what the "filename" variable is set to so I can't know what is wrong.

    Greetings.

    Daniel:o

  3. #3
    Eric is offline Senior Member
    Join Date
    Jun 2007
    Posts
    111
    Rep Power
    0

    Default

    "filename" is a JTextField. It just says "parse error" when I try to generate CSD and when I try to compile, it says "not a statement" and it also tells me it's expecting a semicolon after "PrintStream" and before "outfile".

    Thanks.
    Eric

Similar Threads

  1. how to Parse int to a string variable (pls hlp)
    By raj reddy in forum Threads and Synchronization
    Replies: 5
    Last Post: 06-10-2008, 07:32 AM
  2. SAX Parse
    By bluefloyd8 in forum New To Java
    Replies: 1
    Last Post: 01-25-2008, 04:57 PM
  3. how to parse an xml file
    By oregon in forum XML
    Replies: 3
    Last Post: 08-01-2007, 05:53 PM
  4. How to parse in html
    By paty in forum New To Java
    Replies: 1
    Last Post: 07-24-2007, 01:29 AM
  5. How to parse HTML tags
    By Ada in forum Advanced Java
    Replies: 1
    Last Post: 05-31-2007, 10:42 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
  •