file creation utilities for c