Link to home
Start Free TrialLog in
Avatar of onaled777
onaled777Flag for United States of America

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.



<cfset size = createObject("java","java.io.File").init(variables.FileNameLocation).length() />
<cfif size gt 0>.....Processing Here......</>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of azadisaryev
azadisaryev
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial