public static string Leer() { string datos; Archivos.Xml <string> texto = new Archivos.Xml <string>(); texto.Leer("Universidad.xml", out datos); return(datos); }
public Universidad Leer() { Universidad a = null; string path = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\UniversidadXml.xml"; Xml <Universidad> nuevoFile = new Archivos.Xml <Universidad>(); nuevoFile.Leer(path, out a); return(a); }
/// <summary> /// Recupera los datos del Gimnasio de un archivo xml /// </summary> /// <returns>Gimnasio con los datos recuperados</returns> public static bool Leer(out Gimnasio gim) { Archivos.Xml <Gimnasio> miXml = new Archivos.Xml <Gimnasio>(); try { String path = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + "\\Gimnasio.xml"; miXml.Leer(path, out gim); return(true); } catch (Exception exc) { throw new ArchivosException(exc); } }