How to use an argument from the command line to open a file?

Specman code to open a file passed to the e program from the command line, and allowing for the possible use of a default file name, would look something like this:

Using an argument from the command line to open a file

The command line would then be one of the following:

  • To use the default file name:
Using an argument from the command line to open a file
  • To explicitly specify the input file name.
Using an argument from the command line to open a file

If the e code was compiled, the command line would be:

Using an argument from the command line to open a file

One could also run this code as part of a full simulation environment, in which case the command line would be:

Using an argument from the command line to open a file

Contact Us

Please, enter your details below. We will get back to you as fast as we can.

This website uses cookies to ensure you get the best experience on our website.

Get Cogita

Please, enter your details below. We will get back to you as fast as we can.

Thank you!

We will get in touch soon.

Get a Quote

Please, enter your details below. We will get back to you as fast as we can.