Java PrintWriter Write saveLastExpInfo(String fileName, int[] info)

Here you can find the source of saveLastExpInfo(String fileName, int[] info)

Description

save Last Exp Info

License

Open Source License

Declaration

public static void saveLastExpInfo(String fileName, int[] info)
            throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

import java.io.IOException;
import java.io.PrintWriter;

public class Main {
    public static void saveLastExpInfo(String fileName, int[] info)
            throws IOException {
        if (info.length < 3)
            return;
        File file = new File(fileName);
        PrintWriter writer = new PrintWriter(file);
        writer.println("NUM_USER " + info[0]);
        writer.println("TYPE_SPD " + info[1]);
        writer.println("EXP_ID " + info[2]);
        writer.close();/*from ww  w  . j  a  v a2 s  .  c  o  m*/
    }
}

Related

  1. saveConvert(final String text, final int escapeMode, final PrintWriter writer)
  2. saveFile(File f, String text)
  3. saveFile(String fileName, String data)
  4. saveFile(String path, String text)
  5. saveHeatmapTableCsv(PrintWriter wr, double[][] coefficients, String[] labelNames)
  6. saveLine(File file, String line)
  7. saveList(List list, OutputStream outs)
  8. saveMatrixAsADM(AtomicReferenceArray matrix, String path)
  9. saveMineField(File fileName, String mineField)