I was wondering, what would I use to read in any data and to write it back out, from files. I know I will need fwrite and fread, but what data type should the buffer it is held in, some example code would be helpful, thanx.