• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter SUNDAY AFTERNOON. Learning How t... > Creating Report and Log Files

Creating Report and Log Files

Once you have opened a file in either ForWriting or ForAppending mode, you can begin to write output to it. There are several ways you can do this. First of all, you can write output a few characters at a time. This often is a good technique to use when creating formatted reports that present data in rows and columns.

You also can write output a line at a time. This facilitates the creation of free-form reports and log files. For example, you might want to create a script log file to which you record all error messages generated by your scripts. Another way to write output to text files is to write blank lines. You may want to add blank lines to text files in order to improve readability and to offset specific sections of reports.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint