What is the difference between file stream (File * pointer) in C and iostream in C ++?
Why are they called a stream, do they have something in common?
Both deal with files, and “stream” is just a very general term for data that comes from separate sources.
The main difference is that the C ++ C ++ i ++ objects are classes / objects, and the C files are accessed through certain f * () functions.
So basically the same task, a different interface style.
, , /, , 1:1, I/O (, ).
, fread() 2 1024 , , , 57, . , 2 , 55 . , , .
fread()
EDIT: , (stderr cerr, ) . , . printf() .
stderr
cerr
printf()
, ++.
http://accu.org/index.php/journals/1539
:
/ .
++ : C :
C Java
, , : (), .
, . , , ( ), . , , seek() , .
, ReadLine(), WriteLine(), ( ). .
Source: https://habr.com/ru/post/1704954/More articles:Каковы хорошие стратегии развертывания кода? - automated-deployI am looking for a data structure for addressing content - chow to make an element in an Xml schema as an optical - xmlHow to determine if a network adapter is removable in Windows - windowsRunning Oracle stores procs from C # - c #scriptaculous ajax autocomplete empty answer - prototypejsThe divisor for the string value for the Ajax response - ajaxДекларативно устанавливает свойство MyUserControl в MyUserControl.xaml - wpfWhy does Unity RegisterInstance <...> force Unity to return multiple instances? - unity-containerIs there an iPhone SDK API that I can use to get the current wallpaper image? - objective-cAll Articles