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

    • C++Builder 12 problem with XML prefixes - property Text from IXMLNode is always empty
    • How to prevent dithering when rendering a 24 bpp bitmap with GDI+?
    • C++Builder 13 fails to link while Webroot SecureAnywhere is running
  • RSS Newest questions tagged c++ – Stack Overflow

    • What should I do if such restriction are being applied to my code
    • How to properly use MSVC's undocumented #pragma extern_absolute with functions?
    • Copying and Padding a Vectors rows quickly
  • RSS Newest questions tagged windows – Stack Overflow

    • use c11 threads.h on windows (with 2023's MS support)
    • Failed to sign in to GitHub Copilot in VS Code (Pro account)
    • How to reliably obtain the Miracast sender's actual IP address on Windows Miracast?
  • 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