java中怎的把中文字符串写入到文本文档中

java中怎样把中文字符串写入到文本文档中Stringtext 中文字符串 FilefileStringfileurl c\\temp.t

java中怎样把中文字符串写入到文本文档中
String   text= "中文字符串 ";
File   file;
String   fileurl= "c;\\temp.txt ";
file   =   new   File(fileurl);
请问怎样把字符串text写到temp.txt文本文档中?

[解决办法]
PrintStream ps = new PrintStream(new FileOutputStream(file);
ps.println(text);