Java: Writing out message to file

void writeMessage( String message, File file )

I’m looking to write out a specified string message to a file using the above syntax. How do I do this?

Yes, although I’m very new to Java and can’t make perfect sense of what I’m seeing. I can’t find examples with the exact syntax and I’m seeing a lot of “BufferedWriter” and try/catch statements. These are probably relevant but I’m not certain. I’m quite clueless right now as you can probably tell.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.