简体   繁体   中英

Reading a large text file in C programming using Clion

I have a problem knowing how to read a large text file in CLion c programming application. I don't know where to include the textfile, what commands to use, if I should use shell or just run the code in Clion etc! I am hoping if any of you are experienced with CLion if you could write a step by step from the beginning. I am supposed to read a text file for an assignment and have not been able to start the assignment cause I don't know how to make my C application read the text file!

Would be incredibly grateful if anyone could take their time and help me!

All the best, A beginner in programming

Step 1 - write your code

在此处输入图片说明

Step 2 - pass location file as argument by configuring execution settings

在此处输入图片说明

Step 3 - set location of the file as program argument

在此处输入图片说明

Step 4 - have fun with C programming ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM