I am developing a C# application and want to store a value of spaces in a field if the field has a value of null.
The assigment of spaces can take place at one of 2 places in my code as follows:
Do you know how to assign a value of spaces to the field "bankNum"
if the field has a null value?
1) during the Substring process:
List<string> ReadFile = File.ReadAllLines(@"U:\SnrMgtRpt\OI_DRS.txt").ToList();
foreach (string line in ReadFile)
bankNum = line.Substring(0, 4);
2) during the array assignment process:
sArray = new string;
sArray = bankNum;