The mode —Input, Output, Append, Random, or Binary— that determines which methods can be used to read and write files.