J
Jchick
Firstly, I am a noobie with some exposure to VB.net
Secondly, I am tasked with trying to do the following:
I have a CSV file that I'd like to have a vb.net program make a change
to:
Here is a line from the CSV file:
"3/16/2006
2:45:24PM","c:\check21\$_314002__231387576_8888880013__0000200000_$_A.tif","<314002<:231387576:8888880013<;0000200000;"
I'd like to rearrange each line to look like this:
"3/16/2006 2:45:24
PM","314002","231387576","8888880013","0000200000","c:\scans\$_314002__231387576_8888880013__0000200000_$_B.tif"
So, I think I need to do this:
1. Cut the 2nd field (c:\scans\...etc) and put it on the end
2. Then replace the "<" characters with nothing.
3. Then replace the ":" characters with a ","
4. Then replace the ";" characters with a ","
5. Write the result to a new CSV file
I think it will give the result I am looking for.
I am such a noob that I don't really know how to start. Is there any
code already written for this that I can modify?
Thanks for any assistance
Secondly, I am tasked with trying to do the following:
I have a CSV file that I'd like to have a vb.net program make a change
to:
Here is a line from the CSV file:
"3/16/2006
2:45:24PM","c:\check21\$_314002__231387576_8888880013__0000200000_$_A.tif","<314002<:231387576:8888880013<;0000200000;"
I'd like to rearrange each line to look like this:
"3/16/2006 2:45:24
PM","314002","231387576","8888880013","0000200000","c:\scans\$_314002__231387576_8888880013__0000200000_$_B.tif"
So, I think I need to do this:
1. Cut the 2nd field (c:\scans\...etc) and put it on the end
2. Then replace the "<" characters with nothing.
3. Then replace the ":" characters with a ","
4. Then replace the ";" characters with a ","
5. Write the result to a new CSV file
I think it will give the result I am looking for.
I am such a noob that I don't really know how to start. Is there any
code already written for this that I can modify?
Thanks for any assistance