Environment Differences

Many programs perform some file I/O. When writing these programs for portability, consider the following:

Do not hard-code filenames or paths. Use constants you define either in a header file or at the beginning of the program.

Do not assume the use of any particular file system. For example, the UNIX-model, hierarchical file system is prevalent on small computers. On larger systems, the file system often follows a different model.

Do not assume a particular display size (number of rows and columns).

Do not assume that display attributes exist. Some environments do not support such attributes as color, underlined text, blinking text, highlighted text, inverse text, protected text, or dim text.