For these standard file formats, use the higher-level options for reading and writing the file contents.
because it stores the names needed to traverse the directory hierarchy to locate the item.
(You also build string-based paths by concatenating directory and file-names together, with the results stored in a slightly different format than that used by the .
Resource files are commonly used to store localizable content such as strings and images.
The process for reading data from a resource file depends on the resource type.
Although you can open any file and read its contents as a stream of bytes, doing so is not always the right choice.