cpclib_asm::assembler::file

Function load_file

Source
pub fn load_file<'a, 'b, F: Into<Fname<'a, 'b>>>(
    fname: F,
    options: &ParserOptions,
) -> Result<(VecDeque<u8>, Option<AmsdosHeader>), AssemblerError>
Expand description

Load a file and remove header if any

  • if path is provided, this is the file name used
  • if a string is provided, there is a search of appropriate filename