Here you can find the source of appendToFile(float[] in, String filename)
public static void appendToFile(float[] in, String filename) throws IOException
//package com.java2s; //License from project: LGPL import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class Main { public static void appendToFile(float[] in, String filename) throws IOException { BufferedWriter outputWriter = null; outputWriter = new BufferedWriter(new FileWriter(filename)); for (int i = 0; i < in.length; i++) { outputWriter.write(Float.toString(in[i])); outputWriter.newLine();//from ww w . ja v a 2s. co m } outputWriter.flush(); outputWriter.close(); } }