Append Data To A File
来源:互联网 发布:高清图片 知乎 编辑:程序博客网 时间:2024/06/12 01:16
/** author:whxbb*/
public void log(String fileName, String content) throws Exception
{
String logMsg = new Date().toLocaleString() + ":" + content + "/r/n";
ByteBuffer bbf = ByteBuffer.wrap(logMsg.getBytes());
File file = new File(fileName);
if (!file.exists())file.createNewFile();
boolean append = true;
FileChannel wChannel = new FileOutputStream(file, append).getChannel();
wChannel.write(bbf);
wChannel.close();
}
- Append Data To A File
- Append data to file end
- tools : append file to file
- Creating a Data dictionary file to use with LogMi
- How to read data from a file in reverse order?
- Saving data to a file in your Android application
- SQL Data to file
- ...append HTML Text to a TWebbrowser Document?
- append HTML Text to a TWebbrowser Document?
- Append items at runtime to a dropdownlist
- append a string to each line
- linux oracle ORA-01221: data file 1 is not the same file to a background process
- How To Append Content To File In Java
- Using "prototype" to append a new method to a Class
- How to use an ActiveX script task to import data into a new Excel file
- How to use obex-data-server to transfer a file on ARM-xScale platform (原创)
- backup a partition data to a file and retore the partition
- How To Load CLOB Data from a File into a CLOB column using PL/SQL
- blog注册成功!
- Get Post Data From Http Request
- 《晨.小强.毛巾》
- 我的一条这样的路
- 如何将一组数据感知控件进行集体操作
- Append Data To A File
- 通过PrintJob设置打印属性?
- 驻入CSDN小记
- 天气真好,睡觉去
- new StringBuffer(int n)的陷阱
- 别人得好东西!先放一下!
- javascript检验页面的常用代码!
- 如何在ASP中实现网络打印功能
- 处理回发数据和处理回发事件的比较