C programming If in my program I redirect a file using this line of code below How can I get the filename and contents o

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

C programming If in my program I redirect a file using this line of code below How can I get the filename and contents o

Post by answerhappygod »

C programming
If in my program I redirect a file using this line of code
below
C Programming If In My Program I Redirect A File Using This Line Of Code Below How Can I Get The Filename And Contents O 1
C Programming If In My Program I Redirect A File Using This Line Of Code Below How Can I Get The Filename And Contents O 1 (1.32 KiB) Viewed 7 times
How can I get the filename and contents of the output file from
stdin or stdout? I need to perform the line of code above and
once its redirected and outputted to file1, I need the file
contents and name to perform the same system command, but instead
it will now be as shown below; Instead of redirecting to file1 it
will redirect file1 to file2
C Programming If In My Program I Redirect A File Using This Line Of Code Below How Can I Get The Filename And Contents O 2
C Programming If In My Program I Redirect A File Using This Line Of Code Below How Can I Get The Filename And Contents O 2 (1.33 KiB) Viewed 7 times
system("cat text.txt > file1.txt");
system("cat file1.txt file2.txt");
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply