R
R
Rudy99662020-11-18 19:27:01
C++ / C#
Rudy9966, 2020-11-18 19:27:01

How to sort a text file in C?

Hello, how can I make it so that a text file is sorted. I have a variable which is sorted by the bubble sort method. It is necessary that instead of a variable there would be a text file and every time when you enter the command ( ./sort > number.txt ) it sorts those numbers that are inside. Here is the code from where I took https://github.com/hathix/cs50-section/blob/master... , and here's how it is with me
.image.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question