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
  • 2020 Top 5 Market Trends Impacting Software Development CompaniesDownload Now!
  • RSS Newest questions tagged c++builder – Stack Overflow

    • BRCC32 Error CSApp.vrc(1): invalid line command in the preprocessed source
    • How can I compile an SQLite amalgamation version in C++ Builder CE?
    • Update C++Builder Rio from 10.3.2 to 10.3.3
  • RSS Newest questions tagged c++ – Stack Overflow

    • c++ compilers behave inconsistently with operator overload and namespaces
    • Returning a torch::Tensor causes seg fault in Python when returning from a C++ binding with pybind11
    • Reducing significant digits and eliminating scientific notation when float/double approaches zero
  • RSS Newest questions tagged windows – Stack Overflow

    • Cannot access the specified file or folder (UNABLE_TO_MASK_PATH). Verify that the item is not marked with system or hidden file attributes
    • How to avoid "Close" button on Windows notification via Electron
    • How to copy files in Windows while preserving their dates?
  • 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 2026 Embarcadero

  • C++ Tools

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

    • Learn Delphi
    • Embarcadero Blogs
    • Python GUI
    • DelphiFeeds