File Input Output Cheat Sheet
The primary library that deals with files:
The library that deals with writing to files:
If there is more then one type of information that is being transferred to or from a file, it is usually best to use a record; IMO.
Writing to a File