开发者

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

开发者 https://www.devze.com 2023-01-13 08:22 出处:网络
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,

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

精彩评论

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