I would base this solution on surrounding identifiers.
If filenameis the only file identifier in its context, I remain with that.
Example:
public void load(String filename) { ... }
But as soon as you have other file attributes, I would think about this:
private String fileName;
private long fileSize
private DateTime fileAge;
source
share