Re: File Editting
- From: "Ted" <wdet2001@xxxxxxxxx>
- Date: 7 Sep 2006 08:43:43 -0700
Unfortunately, I don't know how to get to each line. I'm an old Foxpro
programmer and am just starting to use the scripting languages. I
should be able to investigate the replace function with no problem.
What about looping through my text file for each line?
Thanks,
Ted
TDM wrote:
"Ted Watkins" <wdet@xxxxxxxxxxxxxxxxx> wrote in message
news:cd08ce970cad4976b03f2fc5a07c40cd@xxxxxxxxxxxxxx
I am just learning to use vbscript and need some help. I have a file that
is 12,000 lines in length with approximately 256 characters per line. I
was
going to import the file to my data table but contained in the file are
some
comma's scattered throughout the records. These pesky little critters are
keeping me from using the DELIMITED function of my IMPORT routine. Can
someone point me in the direction for writing a vbscript routine for
searching each line and replacing each comma with a blank space.
Thanks,
Ted
It sounds like you know how to get to each line, you can then use the
Replace
function to replace the commas with spaces.
Replace(expression, find, replacewith[, start[, count[, compare]]])TDM
.
- References:
- File Editting
- From: Ted Watkins
- Re: File Editting
- From: TDM
- File Editting
- Prev by Date: Re: define string having " char in it
- Next by Date: Re: File Editting
- Previous by thread: Re: File Editting
- Next by thread: Re: File Editting
- Index(es):
Relevant Pages
|