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
  • 2020 Top 5 Market Trends Impacting Software Development CompaniesDownload Now!
  • Categories

    Artificial Intelligence Tech32C96C++852C++11362C++14379C++17480C++20140C++231Code Snippet26Components55Database20Game Development33Generic Programming15Introduction to C++395Iterators23Language Feature228Learn C++853Numerics3Syntax126Templates33Videos90
  • Never miss news

  • Popular posts

    • C++C++11C++14C++17Introduction to C++Learn C++

      How To Set Up Dev-C++ For Your First Project

      By Learn C++
      June 15, 2021
    • C++C++11C++14C++17Language FeatureLearn C++

      ASCII Art: Fun Code Spinning Donut In 3D Text Form In C++

      By Yilmaz Yoru
      February 13, 2021
  • RSS Newest questions tagged c++builder – Stack Overflow

    • Unresolved external 'IdnToAscii'
    • Resizing a form C++Builder FMX (Delphi)
    • Using Address Sanitizer (ASAN) with VCL in Embarcadero C++Builder 12.3
  • RSS Unknown Feed

  • RSS Newest questions tagged windows – Stack Overflow

    • How to reliably calculate a zoom factor from WM_GESTURE/GID_ZOOM
    • How to call UMDF driver
    • Problems with <windows.h> when using C to check a file
  • 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
  • Follow us