anyone knows how to make the record below fixed to 256 chars and then position each var to certain offset and length. is it
in.write(1,6); as in.write(position, length) how can i define the record size to 256 characters only?
thanx for the help, the code is below... i am reading the variables and writing them but i do not want each record to go up more than 256 and is there a way to write a ctrl/linefeed at the end
in.write(ctrl/linefeed)? is it in.nextLine();?
public void WriteFile(String AStateCode,String AProjId,String ArecordType, String Afillera,String AactionType,String Afillerb){ try{ BufferedWriter in = new BufferedWriter(new FileWriter (afile.getPath(),true)); in.write(AStateCode); in.write(AProjId); in.write(Arec ordType); in.write(Afillera); in.write(AactionType); in.write(Afillerb); in.clos e();
}catch(IOException e){ System.out.println("ERROR:writing to the file" + e.getMessage()); } }