Solved

Unicode, Ansi, dos text

Posted on 1997-05-06
2
223 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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…
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…

937 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

Need Help in Real-Time?

Connect with top rated Experts

4 Experts available now in Live!

Get 1:1 Help Now