Simplified file_add function using file() function