Learn C++
Menu
  • Home
  • Learn C++
    • Language Feature
    • Syntax
    • Code Snippet
    • Videos
  • C++
    • C++11
  • Community
  • Free Licenses

Browsing tag

StringList

C++C++11C++14C++17Learn C++

Tutorial: Learn To Sort A Text File On Windows With C++

By Yilmaz Yoru
February 15, 2021
In C++ Builder sorting text string lines is very easy by setting Sorted property of a StringList to true. This example below sorts a given text file and saves as sorted in same name. void sort_textfile(UnicodeString filename) { auto str_list = new TStringList; str_list->LoadFromFile(filename); str_list->Sorted = true; str_list->SaveToFile(filename); …
Read more
  • Reduce development time and get to market faster with Embarcadero C++Builder.
    Design. Code. Compile. Deploy.

    Start Free Trial

    Free C++Builder Community Edition
  • Discovering the Best Developer Framework
    Download Now!
  • RSS Newest questions tagged c++builder – Stack Overflow

    • How to use Pjsip library in Embarcadero C++Builder
    • Why does my VCL form created inside a DLL disappear when minimised
    • Old functions suddenly being loaded from a different Windows DLL (that doesn't exist on Windows 7)
  • RSS Newest questions tagged c++ – Stack Overflow

    • std::equal_to<void>{}(A1, B1) does not compile, while A1 == B1 compiles in C++26 for unscoped enums?
    • Is it possible that the assertion can fail with memory_order::relaxed to transfer pointers?
    • header code in visual studio is not synced while debugging [closed]
  • RSS Newest questions tagged windows – Stack Overflow

    • Velopack is not updating version of WPF application
    • Whisper-Server can't read data
    • Mosquitto broker on Windows only accessible locally, cannot connect from LAN/ESP32 [duplicate]
  • LearnCPlusPlus.org is a C++ tutorial and learning platform for Windows developers using C++ to build Windows applications. It focuses on tools that allow rapid development and programming of both Win32 and Win64 applications. Additionally, it supports deploying apps to iOS.

    © Copyright 2025 Embarcadero

  • C++ Tools

    • Download C++Builder
    • Download Dev-C++
  • Links

    • Learn Delphi
    • Embarcadero Blogs
    • Python GUI
    • DelphiFeeds