/**
 * Java file created by JControl/IDE
 *
 * @author RSt
 * @date 04.11.04 14:34
 *
 */
import java.io.IOException;
import jcontrol.io.Flash;

public class FlashWrite {

	  private static Flash myFlash;

    public FlashWrite() {
    	  try{
            //Initiate Flash object with context to bank 0
            myFlash = new Flash(0);
        }catch(IOException e){
        }
    }
    
    public static void main(String[] args) {
        new FlashWrite();
        String writeThis = "Welcome to JControl!!!";
        byte[] data = writeThis.getBytes();
        try{
            //write data to memory:
            myFlash.write(data, 0, data.length, 0);
        }catch(IOException e){
        }
        for(;;);//Stops execution of this program.
    }
}
