Solved

Unicode, Ansi, dos text

Posted on 1997-05-06
2
222 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
Comment Utility
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
Comment Utility
Bought This Question.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

772 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

10 Experts available now in Live!

Get 1:1 Help Now