Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Writing to a text file

Posted on 1998-09-03
3
204 Views
Last Modified: 2010-04-30
Can I write to a text file without the contents of the text file being in speech marks?
0
Comment
Question by:bigc
3 Comments
 

Accepted Solution

by:
qhenry earned 50 total points
ID: 1432733
use :
Print #filenumber, [outputlist]
instead of
Write #filenumber, [outputlist]

qhenry
0
 
LVL 14

Expert Comment

by:waty
ID: 1432734
I do as follow in a lot of my project and works perfectly :

nPrintOut = FreeFile
Open sPSOut For Binary Access Write As #nPrintOut
         
' *** Add Generic Header
Put #nPrintOut, , "YourText" & chr$(13)

close #nPrintOut


0
 

Author Comment

by:bigc
ID: 1432735
Works perfectly - thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question