Posts Tagged Java

Simple Java File Read/Write Example

Here is a simple example of a Java class that will read/write a file byte by byte
/*
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package filereader;
 
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
 
/**
*
* @author dphegarty
*/
public class Main {
 
/**
[...]

jump2top free wordpress themes