fix: malloc error handling
feat: add file execute process
feat: add local file access functions
refactor: fix inconsistency in file access function definitions
feat: add structure for dynamic file access