Solved

Unicode, Ansi, dos text

Posted on 1997-05-06
2
224 Views
Last Modified: 2008-03-03
I need to write a string in a file which is used in input
by a dos based program.
My probleme is that the accebtuated caracter are not well
managed. I use VB4 32 bits and i know it converts string
in Unicode.
So how can i create a file containing dos text.
I have used :
 - strconv with vbFromUnicode
 - the win32 API function called CharToOem
0
Comment
Question by:Billyboy
2 Comments
 
LVL 7

Accepted Solution

by:
tward earned 100 total points
ID: 1426026
The following will create a simple text file, if the file does not exist Append creates it, if it exists Append just Appends to it.

Write or Print actually puts the text into the file, look up write and print in the help as they both have different properties like write puts quotes around each thing you write out.

Sorry if this isn't what you are looking for, it was all I could get out of your question.

Open Filename For Append As #1

Write #1, text

       or

Print #1, text

Close #1

0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1426027
Bought This Question.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

832 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