Mail Archives: djgpp/1997/06/15/23:32:16
Claude Sassine wrote:
>
> In trying to create a file from with a C program with filename longer
> than 8 characters, two questions came about. One, can the size the
> filename be changed by adjusting a header file variable? The stdio.h
> file defines the FILENAME_MAX=260, but the only 8 characters are
> permited. Is there some other variable that can changed to accomplish
> this?
i am not sure i understand what you are saying correctly, but if you
think you can get long file names on a system that does not support them
(such as dos 6.22/win 3.1x) by adjusting a macro definition, you are
mistaken. consult the faq regarding details on lfn.
> Secondly, the information in a open file does not seem to be written
> onto the hard drive until after the program ends. This was done using
> the fopen and fclose commands. The header files seem to offer more
> processing than I am aware of, but time has not allowed me the chance
> to read the information at the DJGPP website. Can the data onto be
> stored onto hard drive, intermittently, as the program continues
> processing?
you need to use fflush to commit buffers to disk. do read the
documentation, the C and C++ faqs and consider getting an introductory C
book.
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
- Raw text -