Question: Hi I'm suppose to be writing a code in C that will read a .txt file however I'm getting this error message. Can anyone help?

Hi I'm suppose to be writing a code in C that willHi I'm suppose to be writing a code in C that will read a .txt file however I'm getting this error message. Can anyone help? Thanks.

9 #include 10 #include 11 //#define FILENAME "rocket1.txt" 12 13 int main (void) 15 16 //double rocket1; double time; FILE * rocket1; rocket1 fopen( "Users//Desktop/EE 186 Repository/Lab3 pt1/main.c", "r"); if (rocket!=NULL) Unused variable"time' 18 19 20 21 printf( "Error! Cannot find file! "); getcharO; 23 24 25 Error! Cannot find file! Program ended with exit code: 9 Filter All Output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets address the issues in your code step by step 1 Correcting Header Files Use the correct standard ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!