how do i output data to a text file in mysql

i want to output table descriptions and content into 2 seperate files, 1 for table description and 1 for the contents of the table.