This example code shows how you can use the StreamReader class to read and write standard text files. It can be used to read lines from one file, process them and then write them back to another file.
Here is a list of my recommended development tools. Most of them are free! I use a combination of these applications for HTML, CSS, Javascript and database development.
In order to send emails from Oracle APEX you can use the APEX_MAIL API. You can send plain text or HTML emails while defining the sender, recipients and bccs.