iPhone application to edit text files
You can do this with iFile.

This application will let you browse the local file system.
Locate your config file, then open it using the built-in Text Viewer
(it also has viewers/players for other file formats such as PDF or MP3).

Despite the name the Text Viewer will actually let you edit and save the file.