How to open a file from x/Motif GUI

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
How to open a file from x/Motif GUI

Submitted by Anonymous on Wed, 12/19/2001 - 17:04. Developers
Hi ,

Let me more clear about my requirement. I have a X/Motif application running on Unix ,
I want to open a log file on some action performed in the GUI ( like a menu option is selected or button is clicked..)

Do i have to use sys call to open this file from GUI?? If so, how can i execute the sys call in a motif program??
Can i do this with exec sys call ?? Is there any other way to do it??

Thanks for ur help,
vara

ICS_support

A sys call doesn`t help you if you mean system() or exec() or something that kicks off external programs. You really want fopen() and fprintf().