In my code, fprintf successfully returns, returning the number of bytes written in STREAM, but in the actual file, the line I wrote does not exist.
The output is probably just buffered. Try closing the file using the close () function, or call fflush () on the stream to force a line into the file.
Source: https://habr.com/ru/post/1696695/More articles:Is there an easy way to determine what factors contribute to the size of an HTML element? - htmlWhy is my web control invalid? - asp.netLightweight 3D .NET graphics engine (Compact and Full Framework) - c #Definition of members of local groups through C # - c #Существуют ли соглашения для имен функций при использовании Perl Test:: More? - perlHow can I convince GroovyShell to maintain state over eval () calls? - javaManaging / using libraries with builds Debug vs Release builds - release-buildsA service for creating an audio podcast from a video? - videoMatch collections with LINQ - linqWhat tool do I use if I want to visually display the programming structure and see the relationship between all objects? - mappingAll Articles