标准C 库函数中创建文件的函数是什么?不是windows函数。
还有创建目录函数。
*****************************************************
  学习,再学习。

解决方案 »

  1.   

    fopen( "filename", "w" );
      

  2.   

    fopen("filename","w");
    好想还有一个createfile()巴
      

  3.   

    int creat(const char *path, mode_t mode);
      

  4.   

    fopen( "filename", "w+" );
    参数w建立的文件只可写
    参数w+建立的文件是可读可写的
      

  5.   

    fopen("filename"  //the file you want to create
          ,"w"        //only write
          )
      

  6.   

    缓冲文件是fopen
    非缓冲文件是creat
      

  7.   


    void makepath(char *path,const char *drive,const char *dir,const char *fname,const char *ext);#include <stdlib.h>
    #include <stdio.h>
    void main( void )
    {
     char pathbuffer[MAXPATH]; 
    char drive[MAXDRIVE]; 
    char dir[MAXDIR];
     char fname[MAXFNAME];
     char ext[MAXEXT]; 
    makepath( pathbuffer, "c", "\\sample\\crt\\", "makepath", "c" ); printf( "Path created with makepath: %s\n\n", pathbuffer ); splitpath( pathbuffer, drive, dir, fname, ext ); 
    printf( "Path extracted with splitpath:\n" ); 
    printf( " Drive: %s\n", drive ); 
    printf( " Dir: %s\n", dir );
     printf( " Filename: %s\n", fname ); 
    printf( " Ext: %s\n", ext );
    }