File2SB

StringBuilder generator
Download

File2SB Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Todd Davis
  • Publisher web site:
  • http://www.seaburydesign.com/Home/tabid/36/language/en-US/Default.aspx
  • Operating Systems:
  • Windows All
  • File Size:
  • 7 KB

File2SB Tags


File2SB Description

File2SB was developed to be a small tool that will allow you to create StringBuilder functions from text files. Template generation is all the rage these days, especially amongst developers who frequently code similar blocks and functions with only minor differences between them. There are lots of good template based programs out there, but sometimes you need to code something specific for your own internal process.There are two ways of "getting" templates. The first is read in a text file from somewhere that has already had the "fields" added by hand. This is the most common method of dealing with templates, as the end user can simply edit the templates with any given text editor if they need to change them.The problem is, sometimes you don't want to allow the end user to change the templates. For example, you might have a program that generates legal forms or corporate documents, that need to remain unchanged except for the fields you designate. In such a case, reading in the text files would be bad, as a malicious end user could alter the template and render the results invalid or unwanted. Or, you wish to offer the option to regenerate the templates to their original status as a program feature.File2SB will read in a given text document, and convert that document into a Function that returns the template as a string. It writes all the required lines for the StringBuilder, and corrects for things like the double quotes. File2SB can write the function in either VB.NET or C# notation as well. Simply click File | Open to read in the template and convert it. From there, you can either cut and paste the converted file into your application, or save it to a text file. At that point, a simple Search and Replace can usually assist you in adding "fields" to your templates.


File2SB Related Software