package com.mindprod.example;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
/**
* Experiment about how WriteUTF stores data.
*
* @author Roedy Green, Canadian Mind Products
* @version 1.0 2016-03-20 initial version
* @since 2016-03-20
*/
public final class TestWriteUTF
{
/**
* Test harness
*
* @param args not used
*/
public static void main( String[] args ) throws IOException
{
final File sample = new File( "C:/temp/sample.dat" );
final FileOutputStream fos = new FileOutputStream( sample );
final DataOutputStream dos = new DataOutputStream( fos );
dos.writeUTF( "abc" );
dos.writeUTF( "" );
dos.close();
}
}