Best Way to Generate Text Files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Justin Ellison
    New Member
    • Nov 2010
    • 5

    Best Way to Generate Text Files

    I'm writing a little application that will generate different .NET related class files to our exact specifications.

    So, my question is this: are there any general guidelines or best practices to follow when generating text files? For example, are all the static parts within the code itself or is some kind of template file used?

    I'm not looking for ways to read/write files, I'm just looking for methodology at this point; the technical details I can handle :)

    Thanks
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    The template idea is probably a good one....I'm not sure what your specifications though.

    If you hard code it, then you will have to recompile the application every time you want to change your template...

    Using the template is a good idea so that you don't need to recompile.

    If you aren't going to be changing the template a lot then maybe it's not necessary.

    -Frinny

    Comment

    Working...