public static boolean saveFile(String fileName,String data,boolean append)
	{
        try 
        {
            FileOutputStream outS=new FileOutputStream(DIRECTORY+fileName,append);
            PrintWriter pw=new PrintWriter(outS);

            pw.println(data);
            pw.flush();
            outS.close();

        } 
        catch (IOException e)
        {
            e.printStackTrace();
            return false;
        }
        
        return true;
	}