First steps towards writing out a resource file