onaled777
asked on
Need file of whitespaces to be considered empty
I want the code below to ignore files that are empty. Empty in this case means it has no characters or if it has characters then it should be whitespace characters only. The code below is only calling it 'empty' in the former case and not the latter and this results in processing that I do not want.
Could you provide code to replace this.
Could you provide code to replace this.
<cfset size = createObject("java","java.io.File").init(variables.FileNameLocation).length() />
<cfif size gt 0>.....Processing Here......</>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.