hello ....i am new in shell script..I have one shell script which read inputs from file...and second is c++ pgm..i call my script from c++ programm..to compare file values to c++ pgm value..
our shell script is shubhi.sh
#! /bin/sh
while read line
do
echo -e"$line"
done<file1
this script reads line by line from file.file store data like this
shubhi;gupta
my c++ program is
#include <iostream>
#include<string>
using name space std;
int main()
{
string username="shubhi";
string password="gupta";
cout<<username;
cout<<password;
system(./shubhi.sh);
return 0;
}
please help me how to compare file input using script with c++ program..