Why is this an issue?
This includes file and I/O functions
Streams and file I/O have a large number of unspecified, undefined and implementation-defined behaviors associated with them.
Noncompliant code example
#include <cstdio> /* Noncompliant */
gets(array); /* Can lead to buffer over-run */
- MISRA C++:2008, 27-0-1 - The stream input/output library <cstdio> shall not be used.