0

How to input the file?

Can someone help me to modify the codes..😭😭😭 the arrays should be assigned according to input file.. 🙏 https://code.sololearn.com/cwGop465l9h3/?ref=app Here’s the input file content. 10/9/02 9:15:59 23.845089 38.018470 DXUYHu 10/9/02 9:16:29 23.845179 38.018069 tKoPTx 10/9/02 9:16:59 23.845530 38.018241 JPQbNb 10/9/02 9:17:29 23.845499 38.017440 aEWdXS 10/9/02 9:17:59 23.844780 38.015609 gqeEjx 10/9/02 9:18:29 23.844780 38.014018 aQArkX 10/9/02 9:18:59 23.844869 38.012569 fhQIAS 10/9/02 9:19:29 23.845360 38.011600 BhngfQ 10/9/02 9:19:59 23.845550 38.010650 rgwehm 10/9/02 9:20:29 23.845100 38.010478 jdBgpN

17th Sep 2018, 5:23 PM
Shiqianz
1 Resposta
0
FYI, you can create your own input file for testing here. Using the line where you open the code for "r" (reading), first add code to open the file for "w" (writing)... ff = fopen("...", "w'); ...and then write your data to it: fprintf(ff, "data to write"); Remember to close the file before opening it again for reading.
17th Sep 2018, 7:33 PM
Kirk Schafer
Kirk Schafer - avatar