Hey my project (to print out a tv guide) is coming together now. I've tested the lesser parts, but now I need to pipe in an xml file of programmes I get off the net to test my printer.
The main function is in this file tvprogs, but I don't know whether I'm piping my test xml file in properly. What's the expected format?
The print function has the tag
Code:
void printEpgText(Epg *pEpg, Filter *pFilter)
I've no filter yet but the Epg pointer comes from
Code:
Epg *readEpg(const char* inputFilename)
With these in mind I'm attempting to pipe my test file simple.xml like this:
in terminal : tvprogs < simple.xml
Code:
int main(int argc, char *argv[])
{
Epg* test = readEpg(argv[1]);
printEpgText(test, NULL);
return EXIT_SUCCESS;
any clues?