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 RAD Studio, Delphi, or C++Builder.
    Design. Code. Compile. Deploy.
    Start Free Trial

    Free C++Builder Community Edition
  • RAD Studio Guide For ManagersDownload Now!
  • RSS Newest questions tagged c++builder – Stack Overflow

    • C++Builder 13 fails to link while Webroot SecureAnywhere is running
    • How to read a TBitmap property from an old DFM stream into a TPicture property in C++Builder 1?
    • Installation of the TidSASLXOAuth2 component
  • RSS Newest questions tagged c++ – Stack Overflow

    • How to use boost::asio::co_spawn with boost::thread::future?
    • WXWidget with VSCode - Can't make it work [closed]
    • How to create signature [closed]
  • RSS Newest questions tagged windows – Stack Overflow

    • I wrote a batch script to save battery reports, but why didn't the output appear until I removed ":" from the file name.? [closed]
    • Is it possible to assign AutomationID to elements of an already assembled application?
    • Why does Win 11 sometimes cripple FP performance of executing code after suspend-resume? [closed]
  • 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