How do I automatically save multiple table view data sources?

I’m writing an application wherein I have 3 separate data sources for a table view. I’d like to automatically save each one in a specified location (somewhere in Application Support) when the application is quit and load them the next time it runs. I can save one of them manually by using the “on data representation” handler, but I can’t figure out how to modify the handler to write its contents to a specific, defined file, and then do so again for the other two data sources. Is this even possible, and if so, how do I go about making it work? Any and all help is greatly appreciated.