This method can be called at any time to retrieve the contents of the clipboard and write it to a data file.