Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AnsiString to DOS format

Status
Not open for further replies.

Raedon

Programmer
Oct 13, 2005
2
BG
hi gays,
I have to write a program that generates a text file, that must be read from a dos program. I try to write it like a string and as a array of chars but the DOS program don't read the file. Can you give me some usefull tip? Thank you
 
Well, have you checked the data in the file with something like notepad or so?

If you do that it's possible to place the error either in the generating or reading program.

But to get access to a ansistring in the "normal" C-way (null terminated) you can use the "ansistring.c_str()" function

Totte
Keep making it perfect and it will end up broken.
 
10x for the answer, but thisi is not what I ment. The problem was in reading/writing of bulgarian characters in the text. I opened my file and the original file with a hex editor, and I solve a problem in low-level ;)
10X anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top