コード例 #1
0
        public void writeToDisk(Proceso p)
        {
            StreamWriter sw = new StreamWriter(suspendedFile, true);

            sw.Write(p.getBloqueado());
            sw.Write('|');
            sw.Write(p.getError());
            sw.Write('|');
            sw.Write(p.getEspera());
            sw.Write('|');
            sw.Write(p.getEstado());
            sw.Write('|');
            sw.Write(p.getFinalizacion());
            sw.Write('|');
            sw.Write(p.getID());
            sw.Write('|');
            sw.Write(p.getLlegada());
            sw.Write('|');
            sw.Write(p.getOpe());
            sw.Write('|');
            sw.Write(p.getPrimera());
            sw.Write('|');
            sw.Write(p.getRespuesta());
            sw.Write('|');
            sw.Write(p.getResult());
            sw.Write('|');
            sw.Write(p.getServicio());
            sw.Write('|');
            sw.Write(p.getSize());
            sw.Write('|');
            sw.Write(p.getTime());
            sw.Write('|');
            sw.Write(p.getTrans());
            sw.Write('\n');
            sw.Close();
        }