You can't write to paths that are inside your app bundle; your bundle is readonly. So that's why the first approach won't work.
But your second approach should in fact work to form a valid path in the documents directory. Are you sure there's something there to read? That directory will be empty when your app is installed. If you want to modify a text file that you yourself include, first copy it from the bundle path to the documents folder.