Hi
I'm reading one html file and writing in another problem.

while cnt <= ubound(lines)
myFile.WriteLine "body = body & """&lines(cnt)&""""
cnt = cnt + 1
wend

Using this code when I see new file it puts one character
(look like small rectangle) before "
how would i get rid of this character???

If i run this code...it works fine
while cnt <= ubound(lines)
myFile.WriteLine "body = body & """&lines(cnt)
cnt = cnt + 1
wend

how would i append " at end of each line without having
special character..i tried to copy and paste to hear but
i am unable to paste...may be its carriage return or line
feed...

thanx
dave

Re: writing to file by Ray

Ray
Mon Jul 19 09:05:20 CDT 2004

You could use Chr(34) in place of """", although they both should produce
the same thing. Are you specifying a file format when you open the file?
What are you using to open it? FSO?

Ray at work

"dave" <anonymous@discussions.microsoft.com> wrote in message
news:2faa901c46d27$ba59b590$a301280a@phx.gbl...
> Hi
> I'm reading one html file and writing in another problem.
>
> while cnt <= ubound(lines)
> myFile.WriteLine "body = body & """&lines(cnt)&""""
> cnt = cnt + 1
> wend
>
> Using this code when I see new file it puts one character
> (look like small rectangle) before "
> how would i get rid of this character???
>
> If i run this code...it works fine
> while cnt <= ubound(lines)
> myFile.WriteLine "body = body & """&lines(cnt)
> cnt = cnt + 1
> wend
>
> how would i append " at end of each line without having
> special character..i tried to copy and paste to hear but
> i am unable to paste...may be its carriage return or line
> feed...
>
> thanx
> dave
>
>
>



Re: writing to file by Rob

Rob
Mon Jul 19 13:38:21 CDT 2004

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
news:eYCsglZbEHA.2520@TK2MSFTNGP12.phx.gbl:

> You could use Chr(34) in place of """", although they both should
> produce the same thing. Are you specifying a file format when you
> open the file? What are you using to open it? FSO?
>
> Ray at work
>
> "dave" <anonymous@discussions.microsoft.com> wrote in message
> news:2faa901c46d27$ba59b590$a301280a@phx.gbl...
>> Hi
>> I'm reading one html file and writing in another problem.
>>
>> while cnt <= ubound(lines)
>> myFile.WriteLine "body = body & """&lines(cnt)&""""
>> cnt = cnt + 1
>> wend
>>
>> Using this code when I see new file it puts one character
>> (look like small rectangle) before "
>> how would i get rid of this character???
>>
>> If i run this code...it works fine
>> while cnt <= ubound(lines)
>> myFile.WriteLine "body = body & """&lines(cnt)
>> cnt = cnt + 1
>> wend
>>
>> how would i append " at end of each line without having
>> special character..i tried to copy and paste to hear but
>> i am unable to paste...may be its carriage return or line
>> feed...
>>
>> thanx
>> dave
>>
>>
>>
>
>
>

Can you paste your entire code?

I have some functions that deal with reading in text files you may find
useful.

Gimme a shout at the forumz, if you need!

--
Robert Collyer
www.webforumz.com
Free Web Design and Development Help, Discussions, tips and Critique!
ASP, VB, .NET, SQL, CSS, HTML, Javascript, Flash, XML, SEO !