AppendFileToFile() public method

public AppendFileToFile ( string filePathToAppendTo, string filePathToAppend ) : string
filePathToAppendTo string
filePathToAppend string
return string
コード例 #1
0
        public string SerializeBatchRequestToFile(batchRequest litleBatchRequest, string filePath)
        {
            filePath = litleFile.createRandomFile(requestDirectory, Path.GetFileName(filePath), "_temp_litleRequest.xml", litleTime);
            string tempFilePath = litleBatchRequest.Serialize();

            litleFile.AppendFileToFile(filePath, tempFilePath);

            return(filePath);
        }
コード例 #2
0
        public String Serialize()
        {
            string xmlHeader = generateXmlHeader();

            string xmlFooter = "</batchRequest>\r\n";

            batchFilePath = litleFile.createRandomFile(requestDirectory, null, "_batchRequest.xml", litleTime);

            litleFile.AppendLineToFile(batchFilePath, xmlHeader);
            litleFile.AppendFileToFile(batchFilePath, tempBatchFilePath);
            litleFile.AppendLineToFile(batchFilePath, xmlFooter);

            tempBatchFilePath = null;

            return(batchFilePath);
        }