// Path: ShootPlane/src/com/beancore/entity/Score.java
// public class Score implements Serializable, Comparable<Score> {
//     private static final long serialVersionUID = 1L;
//     private Date scoreDateTime;
//     private int score;
//     private long lastSeconds;
// 
//     public Score() {
// 	super();
//     }
// 
//     public Score(Date scoreDateTime, int score, long lastSeconds) {
// 	super();
// 	this.scoreDateTime = scoreDateTime;
// 	this.score = score;
// 	this.lastSeconds = lastSeconds;
//     }
// 
//     public Date getScoreDateTime() {
// 	return scoreDateTime;
//     }
// 
//     public void setScoreDateTime(Date scoreDateTime) {
// 	this.scoreDateTime = scoreDateTime;
//     }
// 
//     public int getScore() {
// 	return score;
//     }
// 
//     public void setScore(int score) {
// 	this.score = score;
//     }
// 
//     public long getLastSeconds() {
// 	return lastSeconds;
//     }
// 
//     public void setLastSeconds(long lastSeconds) {
// 	this.lastSeconds = lastSeconds;
//     }
// 
//     @Override
//     public int hashCode() {
// 	final int prime = 31;
// 	int result = 1;
// 	result = prime * result + score;
// 	return result;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
// 	if (this == obj)
// 	    return true;
// 	if (obj == null)
// 	    return false;
// 	if (getClass() != obj.getClass())
// 	    return false;
// 	Score other = (Score) obj;
// 	if (score != other.score)
// 	    return false;
// 	return true;
//     }
// 
//     @Override
//     public int compareTo(Score score) {
// 	return this.score - score.getScore();
//     }
// 
// }


import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
import com.beancore.entity.Score;
package com.beancore.util;



public class FileUtil {
    public static String readFileToString(String filePath) throws IOException {
	StringBuilder sb = new StringBuilder();
	File file = new File(filePath);
	BufferedReader br = new BufferedReader(new FileReader(file));
	String line = null;
	while ((line = br.readLine()) != null) {
	    sb.append(new String(line.getBytes(),"utf-8")).append("\r\n");
	}
	br.close();
	return sb.toString();
    }

// Path: ShootPlane/src/com/beancore/entity/Score.java
// public class Score implements Serializable, Comparable<Score> {
//     private static final long serialVersionUID = 1L;
//     private Date scoreDateTime;
//     private int score;
//     private long lastSeconds;
// 
//     public Score() {
// 	super();
//     }
// 
//     public Score(Date scoreDateTime, int score, long lastSeconds) {
// 	super();
// 	this.scoreDateTime = scoreDateTime;
// 	this.score = score;
// 	this.lastSeconds = lastSeconds;
//     }
// 
//     public Date getScoreDateTime() {
// 	return scoreDateTime;
//     }
// 
//     public void setScoreDateTime(Date scoreDateTime) {
// 	this.scoreDateTime = scoreDateTime;
//     }
// 
//     public int getScore() {
// 	return score;
//     }
// 
//     public void setScore(int score) {
// 	this.score = score;
//     }
// 
//     public long getLastSeconds() {
// 	return lastSeconds;
//     }
// 
//     public void setLastSeconds(long lastSeconds) {
// 	this.lastSeconds = lastSeconds;
//     }
// 
//     @Override
//     public int hashCode() {
// 	final int prime = 31;
// 	int result = 1;
// 	result = prime * result + score;
// 	return result;
//     }
// 
//     @Override
//     public boolean equals(Object obj) {
// 	if (this == obj)
// 	    return true;
// 	if (obj == null)
// 	    return false;
// 	if (getClass() != obj.getClass())
// 	    return false;
// 	Score other = (Score) obj;
// 	if (score != other.score)
// 	    return false;
// 	return true;
//     }
// 
//     @Override
//     public int compareTo(Score score) {
// 	return this.score - score.getScore();
//     }
// 
// }


// Path: ShootPlane/src/com/beancore/util/FileUtil.java
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
import com.beancore.entity.Score;

package com.beancore.util;



public class FileUtil {
    public static String readFileToString(String filePath) throws IOException {
	StringBuilder sb = new StringBuilder();
	File file = new File(filePath);
	BufferedReader br = new BufferedReader(new FileReader(file));
	String line = null;
	while ((line = br.readLine()) != null) {
	    sb.append(new String(line.getBytes(),"utf-8")).append("\r\n");
	}
	br.close();
	return sb.toString();
    }

    public static void writeScore(List<Score> scoreList, String filePath) throws FileNotFoundException, IOException {