Selected from here
IBaseFilter ibf = new FileWriter() as IBaseFilter;
Update:
"I know how to add the author of a file to my Graph in code, I just donβt know how to set the path to the file"
try the following:
FileWriter fileWriter = new FileWriter(); IFileSinkFilter fileSinkFilter = (IFileSinkFilter)fileWriter; fileSinkFilter.SetFileName(fileOutput, null);
Here's a useful link that shows a full run example . the example demonstrates the use of DES, but you should get a general idea from it.
source share