[FIX] fixed SmartFile after disabling the deprecated streamXY functions