当前位置: 技术问答>java相关
how can i append a text into text file(i am in linux,can't write chinese,sorry)
来源: 互联网 发布时间:2014-12-28
本文导语: | oh,sorry! | 使用RamdonAccessFile可以实现文件的追加 例程如下: import java.io.*; public class IOStreamDemo { public static void main(String[] args) { try{ RandomAccessFile rf1 = new RandomAccessFile("d:\jeru.txt","rw");...
|
oh,sorry!
|
使用RamdonAccessFile可以实现文件的追加
例程如下:
import java.io.*;
public class IOStreamDemo {
public static void main(String[] args) {
try{
RandomAccessFile rf1 = new RandomAccessFile("d:\jeru.txt","rw");
for (int i = 0; i
例程如下:
import java.io.*;
public class IOStreamDemo {
public static void main(String[] args) {
try{
RandomAccessFile rf1 = new RandomAccessFile("d:\jeru.txt","rw");
for (int i = 0; i