开发者

How to edit remote files on an Apache server with Android application

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜