Thread: Error Plz help (Rsps 317)

Results 1 to 2 of 2
  1. #1 Error Plz help (Rsps 317) 
    Registered Member
    Join Date
    Aug 2014
    Posts
    44
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Hello i'm trying to make a :uggestion command, wich basicly will store whatever they tyoe in the command into a txt document....

    But i keep getting this error

    Code:
    src\server\model\players\packets\Commands.java:667: error: cannot find symbol BufferedWriter suggest = new BufferedWriter(new FileWriter("./Data/Suggestion s/Suggestions.txt", true)); ^ symbol: class BufferedWriter location: class Commands 
    src\server\model\players\packets\Commands.java:667: error: cannot find symbol BufferedWriter suggest = new BufferedWriter(new FileWriter("./Data/Suggestion s/Suggestions.txt", true)); ^ symbol: class BufferedWriter location: class Commands 
    src\server\model\players\packets\Commands.java:667: error: cannot find symbol BufferedWriter suggest = new BufferedWriter(new FileWriter("./Data/Suggestion s/Suggestions.txt", true)); ^ symbol: class FileWriter location: class Commands 
    src\server\model\players\packets\Commands.java:676: error: cannot find symbol } catch (IOException e) { ^ symbol: class IOException location: class Commands 4 errors Press any key to continue . . .

    why does it say that?



    The code ive used is

    Code:
    				if (playerCommand.startsWith("suggestion")) {
    				   try {
       BufferedWriter suggest = new BufferedWriter(new FileWriter("./Data/Suggestions/Suggestions.txt", true));
       String Suggestion = playerCommand.substring(8);
       try {	
    	suggest.newLine();
    	suggest.write(c.playerName + ": " + Suggestion);
    	c.sendMessage("Thank you for your suggestion, we will read over it soon.");
    	} finally {
    	suggest.close();
    	}
    	} catch (IOException e) {
                    e.printStackTrace();
    	
    }
    		}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2014
    Posts
    44
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    What will that help with?

    - - - Updated - - -

    wow, i see what u mean now... That was fast man, wow thanks alot
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Error plz help repp+
    By massacre215 in forum Help
    Replies: 2
    Last Post: 05-01-2009, 07:01 AM
  2. 525 error plz help
    By toxic2008 in forum Requests
    Replies: 1
    Last Post: 04-09-2009, 02:25 AM
  3. [508] Client error, plz help
    By Interrupted in forum Help
    Replies: 8
    Last Post: 02-14-2009, 12:54 AM
  4. 1 error plz help ima noob
    By Nazi Fish in forum Help
    Replies: 7
    Last Post: 02-06-2009, 01:08 AM
  5. quest error plz help me
    By zaradomin in forum Help
    Replies: 2
    Last Post: 01-29-2009, 01:57 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •