next up previous
Next: Encoded Data Up: Uuencoding Previous: Uuencoding

The begin Line

The begin line starts with the word begin in the first column. It is followed, all on the same line, by the mode and the filename.

mode is a three- or four-digit octal number, describing the access permissions of the target file. This mode value is the same as used with the Unix chmod command and by the open system call. Each of the three digits is a binary or of the values 4 (read permission), 2 (write permission) and 1 (execute permission). The first digit gives the user's permissions, the second one the permissions for the group the user is in, and the third digit describes everyone else's permissions. On DOS or other systems with only a limited concept of file permissions, only the first digit should be evaluated. If the ``2'' bit is not set, the resulting file should be read-only, the ``1'' bit should be set for COM and EXE files. Common values are 644 or 755.

filename is the name of the file. The name should be without any directory information.



2005-01-11