xcode file redirection · Wiki · EECS 281 / wiki · GitLab

PHOTO EMBED

Tue Apr 20 2021 01:06:11 GMT+0000 (UTC)

Saved by @suibhne #c++ #output #xcode #redirection

#ifdef __APPLE__
freopen("inputFilename.txt", "r", stdin);
freopen("outputFilename.txt", "w", stdout);
#endif
content_copyCOPY

https://gitlab.eecs.umich.edu/eecs281/wiki/-/wikis/xcode-file-redirection