first try at c file io