private static string getCode() { String path = ContentDistributor.getRealRootPath() + @"GENERATIONCODE\IslandGeneration.cs"; System.IO.StreamReader myFile = new System.IO.StreamReader(path); string source = myFile.ReadToEnd(); myFile.Close(); return(source); }
public void loadFromFile(string path) { string[] file = DataLoader.getCharFile(ContentDistributor.getRealRootPath() + path); main = new BodyPart(); main.loadFromFile(file, 0, new FileInfo(ContentDistributor.getRealRootPath() + path)); }