setFile method