Someone just showed me arguments a few weeks ago, but below looks rights. But actually, no... that's not what you're attempting to do either -- I'll leave it to the experts.
Code:
#include "dll.h"
#include <windows.h>
#include <fstream>
export double func1(int argc,char *argv[])
{
for ( int i = 1 ; i < argc ; i++ ) {
ifstream in (argv[i], ios::in | ios:: binary | ios::beg);
ofstream out (argv[i], ios::out | ios:: binary | ios::app);
char ch;
while (in.get(ch)) {
out << ch;
}
in.close();
out.close();
}
}