tracker issue : CF-4019842

select a category, or use search below
(searches all categories and all time range)
Title:

cfloop over a file should take a file object as much as it should take a path

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 07/12/2015

Components: Language

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Minor / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 1

Currently <cfloop file=""> only takes a file path. It should take a file object too, eg:

<cfset myFile = fileOpen(filePath)>
<cfloop index="line" file="#myFile#">
[etc]

-- 
Adam

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4019842

External Customer Info:
External Company:  
External Customer Name: Adam
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

cfloop over a file should take a file object as much as it should take a path
Vote by External U.
6687 | July 12, 2015 05:14:18 PM GMT
Can you please confirm in what version of ColdFusion this is going to be implemented in. It says "to fix" but does not say which version.
Comment by External U.
6686 | January 25, 2016 08:19:02 AM GMT