DBWAppendFile

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > File >

DBWAppendFile

Description

Append a file to another one.

Syntax

Sub DBWAppendFile(SourcePath, DestinationPath)

Parameters

SourcePath

the file to read data from

DestinationPath

the file to append to

Example

Sub main()
 SourcePath="c:\temp\first.txt" 'this file contains a string like "one,two,three,"
 DestinationPath="c:\temp\second.txt" 'this file contains a string like "four,five,six "
 DBWAppendFile SourcePath, DestinationPath
 'as a result second.txt will contain string four,five,six one,two,three,
End sub