  | INameServerClientProtocolCreateFile Method | 
            Creates a new file in the specified directory.
            
Namespace: Ookii.Jumbo.DfsAssembly: Ookii.Jumbo.Dfs (in Ookii.Jumbo.Dfs.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
SyntaxBlockAssignment CreateFile(
	string path,
	int blockSize,
	int replicationFactor,
	bool localReplica,
	RecordStreamOptions recordOptions
)
Function CreateFile ( 
	path As String,
	blockSize As Integer,
	replicationFactor As Integer,
	localReplica As Boolean,
	recordOptions As RecordStreamOptions
) As BlockAssignment
BlockAssignment^ CreateFile(
	String^ path, 
	int blockSize, 
	int replicationFactor, 
	bool localReplica, 
	RecordStreamOptions recordOptions
)
abstract CreateFile : 
        path : string * 
        blockSize : int * 
        replicationFactor : int * 
        localReplica : bool * 
        recordOptions : RecordStreamOptions -> BlockAssignment Parameters
- path  String
 - The full path of the new file.
 - blockSize  Int32
 - The size of the blocks in the file, or zero to use the file system default block size.
 - replicationFactor  Int32
 - The number of replicas to create of the file's blocks, or zero to use the file system default replication factor.
 - localReplica  Boolean
 -  to put the first replica on the node that's creating the file if it's part of the DFS cluster; otherwise, .
 - recordOptions  RecordStreamOptions
 - The record options for the file.
 
Return Value
BlockAssignment
            The 
BlockAssignment for the first block of the file.
            
Exceptions
See Also