is the most efficient way to get a file size seriously to just peek to the end of it and save the position somewhere