C Programming Tutorial # 42 - fgets() - Reading Strings From A File - Part 1 [HD]

preview_player
Показать описание
In this tutorial we will learn about fgets() function - a function to read strings from a file. fgets() allows you to specify number of chars to read so that you don't overflow.

This tutorial is part of the following series:
Рекомендации по теме
Комментарии
Автор

Thanks so much! This has been the one thing I have not under stood in C, but now I understand.

Nick-ikkw
Автор

Really very easy to understand when we are watching the videos. Great Teaching. But most of the tutorials are missing the conclusion videos. What is the use of watching all the stuff without any conclusion. Again we need to read all the stuff from the first. Kindly upload the conclusion videos so that we'll get benefit of these videos.

rajasekharkollapu
Автор

my code works fine with any length of string, from 2 to whatever high number possible, i see no apparent changes in the performance tho, can somebody enlighten me?

leonardomurgia
Автор

hi, great video. I just have one question. I have been asked for one of my assignments to actually read a text file of number values. So i understand there will have to be a string array. Would I have to create a separate function which loops based on the size of the string and converts the string into an integer value? if so how exactly does one o about doing that?

splodge
Автор

Great tutorial - really easy to understand - thanks!

patrickleonard
Автор

I need to read a word at a time in a file containing only tabs and newline characters. How do I do this?

Watupm
Автор

Can you make your code open a file on your computer files on command?

harmanndhiman
Автор

He wants you to buy the second video
What he doesn't understand is that he is not only person with this tutorial on youtube.

nitishchauhan
Автор

how do I use fscanf if there are no spaces in the file, only tabs '\t' characters.

Watupm
Автор

great tutorial! one quick question, you said that fgets only read strings. just wondering what is the function to use if i want an integer-reading equivalent of fgets? is it like fgeti or something? thanks!

csmith
Автор

is it possible to deklare with fgets 2dimensional arrays? that would help me a lot.

juliange
Автор

How do you store the next lines in the array?

jammy
Автор

I look at the next video and it says "[Private video]"
I ask for 1 simple little video that could easily be 2 minutes long.

MaxRollison
Автор

Part 2 is missing rendering this tutorial almost useless.

But great information none the less.

dmolition
Автор

please compile and run it at the end i wanted to see what appeared

fatimaezzeddine
Автор

How to restrict users not to enter not more then 20 characters while giving input ?? please share me that code

shubhampatel
Автор

@kennybenny17 Please visit CPlusPlusTutor. com to find out. This helps cover some of the expenses of producing the tutorials and maintaining the website.

Learnorama
Автор

He says around 2:40 what if someone has a long name. Hahahah The reason why this is funny is because he is Indian and we all know that some Indian last names are really long! Hahahah LOL

Educationscience
Автор

i didn't the idea of making us watch the first video then we can't watch the second.
anyway thanks it was useful, but i wished if i could see the other

jacobkazal
Автор

Troll. Gives basic overview then ends before explaining. Have to pay for second vid to see explanation.

StaviDawg