How to get output in a file or browser using cfdump in coldfusion

cfdump - get output in a file or browser

cfdumpOutput.cfm


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdump tag: how to get output in a file or browser</title>
</head>

<body>
<h2 style="color:OrangeRed; font-style:italic">cfdump tag example: how to get output in a file or browser</h2>
<hr width="575" align="left" color="CadetBlue" />
<br />

<cfquery name="qCenters" datasource="cfdocexamples" maxrows="3">
 Select Center_ID, Name From Centers
</cfquery>

<cfdump var="#qCenters#" label="Centers [file output]" output="c:\Centers.txt">
<br /><br />

<cfdump var="#qCenters#" label="Centers [browser output]" output="browser">

</body>
</html>