#1 2021-11-25 11:39:39

srp
Member
Registered: 2014-09-02
Posts: 11

Zero Length handling in FileFromString

Expected Result from FileFromString('','d:\1.pdf') is False
but the function Result is True and created a file with Zero Length.

Is this Expected Behaviour?


Thank You.

Last edited by srp (2021-11-25 13:18:39)

Offline

#2 2021-11-25 22:28:29

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,527
Website

Re: Zero Length handling in FileFromString

Yes it is.

A file with zero length is a perfectly valid file.

Offline

Board footer

Powered by FluxBB