使用PrintWriter对象即可写Text文件。 请参考以下示例: <%@ page import="java.io.*" % <% String str = "print me"; //always give the path from root. This way it almost always works. String nameOfTextFile = "/usr/anil/imp.txt"; try { PrintWriter pw = new PrintWriter(new FileOutputStream(nameOfTextFile)); pw.println(str); //clean up pw.close(...[ 查看全文 ]
*** Add VB code in a RTF control Call InitColorize CallColorizeWords(rtfVBCode)*** Now your VB code in your RTF control is colorized Source Code: #VBIDEUtils#*************************************************************Programmer Name : Waty Thierry* Web Site : www.geocities.com/ResearchTriangle/6311/* E-Mail : waty.thierry@usa.net* Date : 30/10/98* Time : 14:47* Modu...[ 查看全文 ]