Writing to text files in C

Writing to text files in C

CodeVault

4 года назад

35,257 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@abbikgg3992
@abbikgg3992 - 08.12.2023 01:49

Hi. fopen and sprintf have different parameters now (2 in fopen and 2 + n for sprintf). Did that change over the course or am I missing something?

Ответить
@lord_toker
@lord_toker - 10.08.2023 06:03

Where can I learn more about why FILE is used, or the difference between any of these functions and their differences between them and their _s counterparts, or why a buffer is needed.

Ответить
@drig7847
@drig7847 - 18.05.2023 05:38

hi, im new to reading and writing files, may i know why you declared two char strings buffer_in and buffer_out and only used buffer_out ?

Ответить
@kostas791
@kostas791 - 20.01.2023 11:28

All great!
Only one question, you are using fwrite function which means you are saving your data in binary right? I guess your editor just lets you see the .dat file in text format

Ответить
@Tiparium_NMF
@Tiparium_NMF - 12.11.2022 02:15

Is there a way to get ready/write capabilities on the same file at the same time? Is that best practice?

Ответить
@pconair2126
@pconair2126 - 19.06.2022 09:59

You are very impressive with your videos..

Ответить
@NoBobPro
@NoBobPro - 27.05.2022 12:58

I get a warning "passing argument # of 'sprintf' makes pointer from integer without a cast".

Ответить
@santy3520
@santy3520 - 09.05.2022 15:10

thank you so much, really

Ответить
@alexandru-cristiansandu1016
@alexandru-cristiansandu1016 - 12.03.2022 22:50

Nice informative video, keep up the good work!

Ответить
@mongraal2272
@mongraal2272 - 24.02.2022 23:27

Sal,tu esti din romania?

Ответить
@bushraw66
@bushraw66 - 02.01.2022 15:06

hi , just a quick note that when you clarify the struct type again at the end the clarification at the beginning is optional,
so you can write it like:
typedef struct{
}point;

Ответить
@sick7rider429
@sick7rider429 - 01.12.2021 19:01

Are u portugues?

Ответить
@shvideo1
@shvideo1 - 27.11.2021 19:54

Awesome video. Custom-formatting data with sprintf_s() before writing it to a text file is very useful. Thank you for taking the time to make this content and explain it so very well.

Ответить
@SaltWaterLazarus
@SaltWaterLazarus - 18.03.2021 16:31

Question, should you write strlen(buffer_out) + 1 to include \0 in general or does it not matter?

Ответить
@tiagomelojuca7851
@tiagomelojuca7851 - 11.02.2021 14:41

Clear and objective explanation... I'm in love with yours videos, sir

Ответить
@lamhonghai123
@lamhonghai123 - 24.01.2021 13:24

what is difference between fpritnf and sprintf ?

Ответить
@arslanjamil7390
@arslanjamil7390 - 24.12.2020 14:58

You can use,
# pragma warning(disable:4996)
at the start of your file it disables warnings related to _s or secure functions in Newer versions of Visual Studio.

Ответить
@karique01
@karique01 - 03.09.2020 13:30

Thank's for these videos, how can i set the txt file in utf8 for characters like "ñ"

Ответить
@puzzlelovers529
@puzzlelovers529 - 19.08.2020 20:14

fprintf is also a convenient function to use, right?

Ответить
@Anndrew154
@Anndrew154 - 11.06.2020 01:15

thanks for the video man!

Ответить