[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

Unicode, Ansi, dos text

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
Billyboy
Asked:
Billyboy
1 Solution
 
twardCommented:
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
 
MirkwoodCommented:
Bought This Question.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now