Need help with writing module

I am new to nginx. This going to be my first module. What would be best
way to write it? When there is specific http requeset, module should
open file and read the tex from it, and write some text to the file. It
should write it after specific text that is why it needs to read text
from file. I could not find any info on how to use files in modules.

Thank you very much.

Posted at Nginx Forum:

Forgot to add. I do not want to use FastCGI or anything like it.

Posted at Nginx Forum:

I am new to nginx. This going to be my first module. What would be best
way to write it? When there is specific http requeset, module should
open file and read the tex from it, and write some text to the file. It
should write it after specific text that is why it needs to read text
from file. I could not find any info on how to use files in modules.

Unless there are some specific reasons it seems it would be more simple
for
you to add such feature via the embedded perl (
http://wiki.nginx.org/HttpPerlModule ) or lua module (
Lua | NGINX ).

rr