Is the file to be text or binary? If it's a binary file, use fwrite... Cprogramming.com - Tutorials - C File I/O Kevin