Update file.cpp
Merge pull request #2 from rbroggi/patch-2

Update file.cpp