Комментарии:
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?
Ответить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.
Ответить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 ?
Ответить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
Is there a way to get ready/write capabilities on the same file at the same time? Is that best practice?
ОтветитьYou are very impressive with your videos..
ОтветитьI get a warning "passing argument # of 'sprintf' makes pointer from integer without a cast".
Ответитьthank you so much, really
ОтветитьNice informative video, keep up the good work!
ОтветитьSal,tu esti din romania?
Ответить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;
Are u portugues?
Ответить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.
ОтветитьQuestion, should you write strlen(buffer_out) + 1 to include \0 in general or does it not matter?
ОтветитьClear and objective explanation... I'm in love with yours videos, sir
Ответитьwhat is difference between fpritnf and sprintf ?
Ответить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.
Thank's for these videos, how can i set the txt file in utf8 for characters like "ñ"
Ответитьfprintf is also a convenient function to use, right?
Ответитьthanks for the video man!
Ответить