I need my app to be able to go to a specified URL and access a file, then insert text at a specific line of said file.开发者_Go百科 Is this at all possible? I greatly appreciate your help and responses, Thanks.
Sure, just configure mod_dav so you get put support on the apache side. Then use a GET to pull down the file, edit it locally, and use PUT to send it back. Obviously, this will not work well from a concurrency standpoint, but it's fine for the basic text editor type workflow.
Alternatively, you could write server side code to actually edit the file on the server side.
精彩评论