Hi all,
I am having an issue with writing an value to a variable inside ssis script component.
trying to convert a file from ansi to utf-8.Here are the steps i followed:
- Created a variable Readonly with string and passed the file as value.
- Created a variable readwrite with string.
This is the code inside the script component:
string text = File.ReadAllText(filename, Encoding.Default);
// write as UTF-8
File.WriteAllText(path2, text, Encoding.UTF8);
I need to get the value of the variable and assign to filename and get the converted file and assign to the variable Path2.