Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 02:16 PM
dave
Guest
 
Posts: n/a
Default writing to file

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



  #2  
Old July 19th, 2005, 02:17 PM
Ray at
Guest
 
Posts: n/a
Default Re: writing to file

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...[color=blue]
> 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
>
>
>[/color]


  #3  
Old July 19th, 2005, 02:17 PM
Rob Collyer
Guest
 
Posts: n/a
Default Re: writing to file

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
news:eYCsglZbEHA.2520@TK2MSFTNGP12.phx.gbl:
[color=blue]
> 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...[color=green]
>> 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
>>
>>
>>[/color]
>
>
>[/color]

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 !
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles