fileIo.h   [plain text]


/*
 * Copyright (c) 2005-2007,2010 Apple Inc. All Rights Reserved.
 */

#include <sys/types.h>

/*
 * Read entire file. 
 */
#ifdef __cplusplus
extern "C" {
#endif

int readFile(
	const char			*fileName,
	unsigned char		**bytes,		// mallocd and returned
	size_t              *numBytes);		// returned

int writeFile(
	const char			*fileName,
	const unsigned char	*bytes,
	size_t              numBytes);

#ifdef __cplusplus
}
#endif