Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!klg0582 From: klg0582@uxa.cso.uiuc.edu (Ken-Huang Lin) Newsgroups: comp.os.msdos.programmer Subject: Help needed for sharing common data between programs Message-ID: <1990Aug9.042244.6@ux1.cso.uiuc.edu> Date: 9 Aug 90 04:22:44 GMT References: <13685@lucid.megatest.UUCP> Sender: usenet@ux1.cso.uiuc.edu (News) Distribution: usa Organization: University of Illinois at Urbana Lines: 12 I would like to have some "global variables" remain alive even after the program ends so that the next program can access them. I tried to set environment variables inside the program using system("set v=..."); in Turbo C. Unfortunately, the effect is only local to that program. Is there any way to set the global environment variables in a program? Or is there a better way to serve the same purpose? Thank you in advance, Ken H. Lin lin@uiwpl.ece.uiuc.edu