Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
You can use the Write and WriteLine methods to append text to a generated output file. Use these methods in helper functions to add text to the output.
To use the Write and WriteLine methods in a text template
Add the following code, which has the Write and WriteLine methods, to the template.
<# string item = @"This is my additonal text I want to append to my output file"; for(int i=1; i<4; i+) { WriteLine(item); //Using the WriteLine method } WriteLine(null); Write(item); //Using the Write method #>
<# Dim item As String = "This is my additonal text I want to append to my output file" Dim i as Integer = 0 For i = 1 To 3 WriteLine(item) 'Using the WriteLine method Next WriteLine("") Write(item) 'Using the Write method #>
See Also
Tasks
How to: Add Helper Functions to Text Templates
Reference
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Rewrote and refactored project. |
Content bug fix. |