python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Console outputs gibberish code after re-redirecting stdout to CON
When I use C++ to invoke Python program output (By system command with parameters), it outputs gibberish code at the end of line. After that, I couldn't input any character (Include Backspace and Ente...
Yuchen Ren
Votes: 0
Answers: 2
use freopen() and scanf() to read an int from file
I try to read an int from a file using freopen(). File in.txt simply have a number:1, but what I get in output is -858993460. My code is shown below:
#include <cstdio>
#pragma warning(disable:49...
uesr12314
Votes: 0
Answers: 1
Dynamic file stream handling in C with freopen
I am trying to write a program that ideally accepts arguments that specify both a source file (to read from) and a destination file (to write to).
The program replaces specified characters in source f...
croblin
Votes: 0
Answers: 2
Debug & run result differ in simple c app that redirects stdout using freopen
I'm using linux manjaro. I have the following code (cons.c)
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *f=freopen("/dev/null", "a", stdout); //redirec...
NoComprende
Votes: 0
Answers: 1