Solved

Unicode, Ansi, dos text

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…

730 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