Anti Resource Leak. Closed randomFile after using