The classic API provides multiple classes and functions to handle files and image data.
- Note
- For MAXON API file and media functions see MAXON API Files & Media.
Files
Files are created, loaded and edited with these classes:
- For arbitrary file access independent of file type, see BaseFile Manual.
- In order to work with Cinema 4D's file format, see HyperFile Manual.
- A section in memory can be handled like a file, see MemoryFileStruct Manual.
- ZipFile class is used to access to ZIP archives, see ZipFile Manual.
- Access to AES encrypted files is explained in the AESFile Manual.
- Loading and saving of Cinema 4D scenes is explained in Disc I/O of the BaseDocument Manual.
- In order to load or save images, see Disc I/O in the BaseBitmap Manual.
- Sound files can be loaded and saved with the respective functions (BaseSound::Load() and BaseSound::Save()) of the BaseSound class.
- For general file utility functions see File Functions Manual.
- All available volumes (i.e. drives) can be browsed with BrowseVolumes, see also BrowseVolumes Manual.
- All files inside of a directory can be inspected with BrowseFiles, see also BrowseFiles Manual.
- When browsing files, dates and times are returned as LocalFileTime, see also LocalFileTime Manual.
- FileMonitor can be used to get notifications about changes of files and directories, see also FileMonitor Manual.
See also Filename Manual.
Media
Classes to load, edit and save image data are:
The image data stored in movie files can be accessed with these classes: