function and files without close method
function with return