Like the book , this file concentrates on the aspects of C-Kermit that are common to all versions: UNIX, VMS, Windows, OS/2, VOS, AOS/VS, etc. FILE command errors can be caught with IF FAIL after the FILE command.

Please refer to your Kermit 95 documentation for information that is specific to Kermit 95. "C-Kermit" refers to all the many programs that are compiled in whole or in part from common C-language source code, comprising: and several others. In addition, the \v(f_error) variable is set to the completion code of the command: 0 if no error, or a negative number if there was an error. The command to open a file is: Opens a file for the type of access specified by the switches, or for read-only access if no switches are given.

These "system-independent" modules are combined with system-dependent modules for each platform to provide the required input/output functions, and also in some cases overlaid with an alternative user interface, such as Macintosh Kermit's point-and-click interface, and in some cases also a terminal emulator, as Kermit 95. Upon success, a channel number is assigned to this file and stored in the given variable so you can refer to the open file in subsequent i/o commands.

If the "most recent update" shown above is long ago, contact Columbia University to see if there is a newer release. The well-known LOG, OPEN, READ, WRITE, and CLOSE commands have the following restrictions: The new file i/o system allows multiple files to be open at once, in any desired combination of modes (read/write/append) supported by the operating system, for line, block (record), or character i/o, for sequential or random access, using consistent syntax and conventions.

For further information, also see the The C-Kermit license was rewritten for version 7.0 to grant automatic permission to packagers of free operating-system distributions to include C-Kermit 7.0. The new system, however, does not replace the old one, since the old system still must be used for: The new system works only with regular files, not with commands or pipes or mailboxes or pseudoterminals.

Examples include Linux (GNU/Linux), Free BSD, Net BSD, etc. TXT file, and is also displayed by C-Kermit itself when you give the VERSION or COPYRIGHT command. No special provisions are made in the FILE commands for handling devices or network connections, nor for preventing you from trying to open them; if the underlying operating system treats them like regular stream disk files, the FILE commands (except, of course SEEK, REWIND, and COUNT) might work with them.

The new C-Kermit license does not apply to Kermit 95. (In C programming terms, the FILE commands are, at present, nothing more than a front end to The keyword specifies the function: FILE OPEN, FILE READ, FILE WRITE, FILE CLOSE, etc.