I have a file called info.txt that is saved on my system.
And in my java code I have to modify the file name and send it as email attachment.
For example, in my code I need to create a file with the name info_myCompanyName.txt and copy contents from info.txt to info_myCompanyName.txt and email the newly created file info_myCompanyName.txt in attachment without saving it on my file system?
This is the scenario. I just want to know is it possible, if so how is it possible. I know how to copy a file from another and how to email and etc...