I'm creating a program that creates family trees. I've figured an equation thatcan calculate exactly how many records to create based on how many generations (assuming you have two parents to the person, R=2E+G-1 OR R=2^G-1). Anyway is there anyway I can have a function that will create and name, based on a string passed to it (increment a number with in it for each instance). How would I do that? Also - what file do I use to use files in straight C?