Assarbad: I really can`t get this code to work..

I copy/paste it into delphi 6, and made a button and three editboxes...
Then on the button I inserted this code:
NetMessageBufferSendSubstA(Edit1.text, Edit2.text, Edit3.text, Msg);
Yeah, I know.. I`m a noob, so sorry if this is a really simple question..
One little question:
Is it possible to read and write some text inside a .dll, .exe, .bat, .txt file in delphi?
Like let delphi write "hello everybody" on the second line, and read a password at line 4, letter 8-14.. ?!?!
This is what I`v made so far in delphi 6:
Easy Net Send - A net send program, that executes .bat files and then send messages.
Pizza Timer - LoL.. Just a test I made, but I made it better, and use in on lasn and stuff..
Admin Tools - Uses Client/Server socket to controll other computers! Yeah!
Paralellport Controller - A program I made to my home made computer card that controlls all the fans and lights in my computer...
Thanks in advance!