File
Ioto provides some simple helper functions to read and write files.
To read a file in one go:
To write a file:
ssize length = rWriteFile("file.txt", data, dataLen, 0644);
To get the current working directory:
To get the base directory containing the application executable:
To join two file paths:
To matach a file against a glob pattern. This tests a filename against a file pattern that list may contain the wildcards: "?" Matches any single character, "" matches zero or more characters of the file or directory and "*"/ matches zero or more directories
To get a list of files in a directory or subdirectories that match the given wildcard pattern.
To walk a directory tree and invoke a callback for each path that matches a given pattern.
To get a temporary filename:
This returns a temporary filename in /tmp starting with the "TEMP-" prefix.