For example, I had a text file that looks like the one below:
Code:
Variable = .iso.org.dod.internet.private.enterprises.9.9.273.1.3.1.1.3.1.8.105.118.116.108.95.97.112.49.0.2.45.4.155.81 Value = Integer32 -44 End of MIB subtree.
Value = Integer32 " strings.
My partially written code to read the file is given as below:
Code:
apfile=fopen("ap1.txt","r+");
if (apfile==NULL)
{
cout<<"Error opening file ap1.txt"<<endl;
fclose (apfile);
return -1;
}
else
{
while (!feof(apfile))
{
}
}
