It depends whether you want the file hanlde outside the normalizeData method or inside it only. If you want to do something on file prior or after calling your normalizeData method then create a file object outside normalizeData method and pass the reference to the method. If ONLY your normalizeData method need to work on the file object then simply pass the filename to it.
Depends on your need and how you want to handle your file.