Hi all,
Just had a project dumped in my lap and was wondering if anyone had any ideas on this....
Everything was going great, until I found out I needed to read in the flatfile, and any null fields need to be changed to None or something similar, then rewrite the file....
I really don't want to run through a bunch of if statements checking for a null value and changing it to None. I know there should be a way of doing it using a foreach, but am not sure how to get started on it.
Any ideas, suggestions, comments, etc greatly appreciated.
Jim
Just had a project dumped in my lap and was wondering if anyone had any ideas on this....
Everything was going great, until I found out I needed to read in the flatfile, and any null fields need to be changed to None or something similar, then rewrite the file....
I really don't want to run through a bunch of if statements checking for a null value and changing it to None. I know there should be a way of doing it using a foreach, but am not sure how to get started on it.
Any ideas, suggestions, comments, etc greatly appreciated.
Jim