Create a file, give it content, then check for its existence