DotLucene 1.4 API Documentation |

# CompoundFileWriter.AddFile Method

Add a source stream. If sourceDir is null, it is set to the same value as the directory where this compound stream exists. The id is the string by which the sub-stream will be know in the compound stream. The caller must ensure that the ID is unique. If the id is null, it is set to the name of the source file.

public void AddFile(
string file
);

#### See Also

CompoundFileWriter Class | Lucene.Net.Index Namespace