C programming - read 2 different directories in the same line from a text file -


i trying read 2 different file directories single line in text file.

eg// under given.txt file, there multiple lines of input directory , output directory "space" between them in 1 line

../input1.txt ../output1.txt

../input2.txt ../output2.txt

../input3.txt ../output3.txt

..... etc. goal loop reading line line, fetch input#.txt, manipulate it, send output#.txt.

my question is, how separately read directories in each line space between them?

i have tried google topic, of them either regarding command prompt argc & argv or reading line line 1 directory in each line. eg// under given.txt

../input.txt

../output.txt

but these aren't searching for

thanks help.

assuming paths don't contain spaces, can split string on space (using string manipulation library), return 2 tokens: first read path, , second write path.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -