Here you can find the source of saveLastExpInfo(String fileName, int[] info)
public static void saveLastExpInfo(String fileName, int[] info) throws IOException
//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*/ } }