Solved

Writing to a text file

Posted on 1998-09-03
3
207 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month6 days, 1 hour left to enroll

626 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