From the course: Learning Assembly Language

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Reading and writing the Enigmatic configuration

Reading and writing the Enigmatic configuration - Python Tutorial

From the course: Learning Assembly Language

Start my 1-month free trial

Reading and writing the Enigmatic configuration

- [Instructor] Let's add some code to incorporate a configuration file into our enigmatic encrypter. The first thing we'll do is to add some file handling constants. Next, we'll add a handle for our configuration file, hConfig quad word initialize to zero, and that's a handle for configuration file. And while we're here, we'll put a handle in for the input file hfin dq zero handle for input file, and hfout dq zero handle for output file. And as we'll see later on, it doesn't matter whether the input and output is plain text or cipher. So we will just declare them as input and output files. We need to add a couple more messages, and also the configuration file name. We don't know what the plain text and cipher text files will be called, so we'll just set up a string buffer so we can get them from the user. We're going to want to identify the contents of our configuration data file. So let's add a string at the start…

Contents