Add overload to addFile for a string
Use sizeof instead of repeating buffer size