Save an AnsiString to a textfile



  • Hi all,

    Can somebody tell me how to save an ansistring to a textfile?
    Doesn't look like ofstream supports it.

    Do I really need to convert it to Char????
    I dont feel like getting out every letter and filling up a char-array.
    Is there any way??

    THANKS A LOT!!
    Eliane



  • Just look the methods AnsiString offers

    YourAnsiString.c_str();
    

    I think this will do it in your case 😉



  • Hey Thanks!! Gonna try that one.



  • By the way: The language here is german. It's not very polite to post here in any other language... please post in german or use the borland newsgroups (forums.borland.com).

    -junix



  • junix schrieb:

    By the way: The language here is german. It's not very polite to post here in any other language... please post in german or use the borland newsgroups (forums.borland.com).

    -junix

    Genau! Oder was würdest Du denken, wenn Du hier folgendes liest (lesen kannst/mußt)? 😉
    ويمكننا القول حاليا ان علاقة التغذية بنشوء السرطان اصبحت امرا مفروغا منه، وعلى هذا الاساس فقد اثبت العديد من الدراسات الحديثة ان نسبة السرطان تنخفض بين السكان الذين يتناولون الكثير من الفواكه والخضر، كما هو الحال في دول البحر الابيض المتوسط. الا ان عدد الدراسات الارتجاعية حول المواد التي يمكن ان تساهم بوقاية الانسان من السرطان ما زالت قليلة، اما الدراسات التدخلية المقارنة فمعدومة حتى الآن حسب تقدير البروفيسور هانز ك. بيزالسكي من جامعة شتوتغارت الالمانية.
    🙂

    xy


Anmelden zum Antworten