VB.Net Parse/Replace a substring in a line -


i know should simple yet little stuck. reading in text file line line. each line formated same based off icd. need take data @ specific location , replace x's.

for example:

line = "first name last name street address state zip other data" 

this fixed length icd address starts @ lets position 100 , goes through 150 need replace position 100 150 x's.

from there writing line out new file , part working fine.

thank help.

use this:

dim newline string = line.substring(0, 100) & new string("x"c, 50) & line.substring(150) 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -