private static byte[] getImportedData(string ROM_FILEPATH, string ASM_FILEPATH, byte fill, main m) { int length = (int)new FileInfo(ROM_FILEPATH).Length; File.WriteAllBytes("xml_temp" + fill + ".bin", Superfast.InitByteArray(fill, length)); m.createTempFile("temp" + fill + ".asm", Directory.GetCurrentDirectory() + "\\xml_temp" + fill + ".bin"); string errorOutput = ""; bool successful = m.runArmipsImport("temp" + fill + ".asm", ref errorOutput); if (!successful) { Form2 form2 = new Form2(errorOutput); form2.ShowDialog(); return(null); } m.DeleteTempFile("temp" + fill + ".asm"); return(File.ReadAllBytes("xml_temp" + fill + ".bin")); }