Snippets of the day – Sunday, February 09, 2014

Posted on Posted in Snippets

software-development

Here are some of the most recently published snippets!

C#: Prepare a string of comma-separated values from a collection.

This method prepares a comma-separated (or any other character specified as ‘separator’ input) from the given list. It can also remove zero or negative inputs if explicitly required by setting removeZerosOrNegatives=true

Open the snippet

Author:    cghersi @ Snip2CodeDev

Batch merge txt files

Short batch script to merge the txt file in a folder.
The output file initially has a different extension to avoid the instance in which the for loop would find it and add it to itself. (another possible solution to this is making sure the output file is the first alphabetically and does not exist yet, so it is created after the loop has began reading the first source file).

Open the snippet

Author:    MatteoP

Leave a Reply

Your email address will not be published. Required fields are marked *