void saveUserInfo()                    
    {   
        String s = "";   
        try   
        {   
            BufferedWriter fout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("user.cfg")));   
            for(int i = 0; i < FtpServer.usersInfo.size();i++)   
            {   
                s = ((UserInfo)FtpServer.usersInfo.get(i)).user+"|"+((UserInfo)FtpServer.usersInfo.get(i)).password+"|"+((UserInfo)FtpServer.usersInfo.get(i)).workDir+"|";   
                fout.write(s);   
                fout.newLine();   
            }   
            fout.close();   
        }   
        catch(Exception e)   
        {   
            e.printStackTrace();   
        }   
    }