Learning ColdFusion 8: CFZip Part III - Reading Zip File Entries

<!---
	Read the readme.txt file directly into a
	ColdFusion string variable.
--->
<cfzip
	action="read"
	file="#ExpandPath( './data.zip' )#"
	entrypath="documents/readme.txt"
	variable="strData"
	/>
 
<!---
	Write the data to a file on the local file
	system. This is basically like performing
	a single-file zip extraction.
--->
<cffile
	action="write"
	file="#ExpandPath( './extracted_readme.txt' )#"
	output="#strData#"
	addnewline="false"
	/>

For Cut-and-Paste