private void ImprovedTemp(string file) { Assembly assembly = Assembly.LoadFrom("RhythmBox.Window.Resources.dll"); if (assembly == null) { throw new Exception($"{nameof(assembly)} can not be null!"); } var lines = ReadLines(() => assembly.GetManifestResourceStream("RhythmBox.Window.Resources.Difficulty1.ini") !, Encoding.UTF8).ToList(); var map = new MapWriter(); new MapReader(lines).CopyAllTo <IMap>(map); map.WriteToNewMap(file); }