Replacing strings with the Filehelpers library.

While working at my current job I’ve been doing a lot of file imports and conversions, so to figure out a more efficient way to do the conversions I did some research and found the FileHelpers library. Now the FileHelpers library makes things very easy to do field conversions by creating attributes that you can connect to each record field and the library will automatically run the conversion on the field.

Below is an example of a simple converter used to do string replacement on a field.

Now to use this converter, all you need to do is add the attribute to your record class.

Mike GriffithReplacing strings with the Filehelpers library.