Re: Defining long constants - do-able but not exactly elegant
- Posted by petelomax at blueyonder.co.uk Mar 13, 2002
- 427 views
On Wed, 13 Mar 2002 18:36:31 -0600, Kat <gertie at PELL.NET> wrote: >What's wrong with simply gets()ing a text file of any length you want, edited >any way you want, and displayed any way you want, in any editor you >want, rather than cluttering up the code files? > One thing I never can quite get is the way windows does the default directory handling. The editor I'm using opens the files from the last session automatically, so *I guess* the windows API never gets to set a "current" directory in the way it would if I double clicked a file in Explorer or used the standard open file dialogue. The upshot of which is that I either have to hard code a directory in my program, which I am loathe to do, or open a random file from the right directory & shut it. before windows can find the file my program is trying to open. Pete