Sun Apr 08, 2007 7:05 am
/*
* Main.java
*
* Created on November 10, 2006, 10:14 AM
*/
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
/**
*
* @author MSI */
public class Main {
/** Creates a new instance of Main */
public Main()
{
data="mmmmmmmmmmmmm";
String ddff;
int tt=6111;
try {
File_in=new FileInputStream(myFile);
Data_in =new DataInputStream(File_in);
BufferedReader ReadH=new BufferedReader(new FileReader("text.txt")) ;
BufferedWriter myW=new BufferedWriter(new FileWriter("text.txt")) ;
File_out=new FileOutputStream(myFile);
Data_out=new DataOutputStream(File_out);
Data_out.writeInt(tt);
Data_out.flush();
Data_out.close();
System.out.println(ReadH.read());
System.out.println(ReadH.read());
System.out.println(ReadH.read());
System.out.println(ReadH.read());
System.out.println(ReadH.read());
System.out.println((Data_in.read(buff)));
System.out.println(buff);
System.out.println(Byte.toString(Data_in.readByte()));
} catch (FileNotFoundException ex) {
ex.printStackTrace();
}
catch (IOException ex) {
ex.printStackTrace();
}
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
new Main();
}
File myFile=new File("text.txt");
FileInputStream File_in;
DataInputStream Data_in ;
FileOutputStream File_out ;
DataOutputStream Data_out;
String data;
byte[] buff=new byte[100];
byte dd;
int x;
}
File_in=new FileInputStream(myFile);
Data_in =new DataInputStream(File_in);
BufferedReader ReadH=new BufferedReader(new FileReader("text.txt")) ;
File_out=new FileOutputStream(myFile);
Data_out=new DataOutputStream(File_out);
BufferedWriter myW=new BufferedWriter(new FileWriter("text.txt")) ;
System.out.println((Data_in.read(buff)));
System.out.println(buff);
ReadH.read()
Data_out.writeInt(tt);
WriteH.write(tt);
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.