package model;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Scanner;
import java.io.FileReader;
/**
 * Created by Elliad on 2016-05-08.
 */
public class FileModel {

    private static File file;
    private static ArrayList<String> stringArrayList = new ArrayList<String>();




    public boolean readFile(String filePath) { // 파일명 받기 및 읽기.
        file= new File(filePath);
        try(Scanner in = new Scanner(new FileReader(filePath)))
        {
            String tempString = "";
            while(in.hasNext()) {
                tempString = in.next(); //임시 텍스트에 개행을 제외한 한 줄을 불러온다
                if(in.hasNext()) tempString +="\n"; //다음 줄이 없을 때는 개행을 추가하지 않는다.
                stringArrayList.add(tempString);
            }
        } catch (FileNotFoundException e) {

            e.printStackTrace();
            return false;
        }
        return true;
    }

    public ArrayList<String> getStringArrayList()
    {
        return stringArrayList;
    }


    public boolean writeFile(String filePath) { // 파일명 받기 및 읽기
        try(  PrintWriter out = new PrintWriter(filePath) ){
            String tstring ="";
            for (String i : stringArrayList) {
                tstring+=i;
            }
            out.print(tstring);
            out.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
            return false;
        }
        return true;
    }

}

@@ -259,23 +259,16 @@
 private 
-static 
 File fil
@@ -269,16 +269,28 @@
 le file;
+ //%EB%A1%9C%EB%93%9C%ED%95%98%EA%B3%A0%EC%9E%88%EB%8A%94 %ED%8C%8C%EC%9D%BC
 %0A    pri
@@ -298,15 +298,8 @@
 ate 
-static 
 Arra
@@ -354,18 +354,197 @@
 ring%3E();
-%0A%0A
+//%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC %EC%A4%84 %EB%8B%A8%EC%9C%84%EB%A1%9C %EC%A0%80%EC%9E%A5%ED%95%98%EB%8A%94 arraylist%0A    private String statusString; //%ED%98%84%EC%9E%AC %ED%8C%8C%EC%9D%BC%EC%9D%84 %EC%9D%BD%EB%8A%94%EC%A7%80 %EB%A1%9C%EB%93%9C%EC%A4%91%EC%9D%B8%EC%A7%80 %EA%B7%B8%EB%9F%B0 %EC%83%81%ED%83%9C%EB%A5%BC %ED%91%9C%EC%8B%9C%ED%95%98%EB%8A%94 %EB%AC%B8%EC%9E%A5%0A%0A    public FileModel()%0A    %7B%0A        statusString = %22Ready(No file is loaded)%22;%0A    %7D
 %0A%0A%0A    p
@@ -1096,32 +1096,83 @@
 alse;%0A        %7D%0A
+        statusString = %22File Loaded Successfully%22;%0A
         return t
@@ -1702,30 +1702,154 @@
         
-return true;%0A    %7D
+statusString = %22File Written successfully%22;%0A        return true;%0A    %7D%0A    public String getStatus()%0A    %7B%0A        return statusString;%0A    %7D%0A
 %0A%0A%7D%0A

Add statusString and getStatus method