Write command including unwanted quotaton marks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to construct a .IDY file for subsequent web data extraction:

Open Filename for output as #1
write #1, "WEB"
write #1, "1"
write #1, cText
etc
close #1

The probem is that "WEB" is being written to the file exactly that way,
quotes included, not simply WEB. The same is true of cText variable and
every other line.

How do I get this stripped out so Excel will process the IDY file? It now
rejects it as invalid.

Thanks in advance . . .
 
Hi

Write encapsulates the strings in quotes, Print doesn't:

Print #1, "WEB"

HTH. Best wishes Harald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top