home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 19006 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  773 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!qding
  2. From: qding@uoft02.utoledo.edu
  3. Newsgroups: comp.lang.c
  4. Subject: Help: Save data in Windows C program
  5. Message-ID: <1992Dec30.000557.734@uoft02.utoledo.edu>
  6. Date: 30 Dec 92 00:05:57 EST
  7. Organization: University of Toledo, Computer Services
  8. Lines: 19
  9.  
  10. Hi, dear netters.
  11.  
  12. I am a new Windows programmer. I am traslating a DOS program to Windows.
  13. One problem I got is that I can not write something to the disk by using
  14. the original program. The program is:
  15.  
  16.         FILE *fp;
  17.         fp=fopen("test.dat", "w");
  18.         fprintf(fp, "%s", "some data");
  19.         fclose(fp);
  20.  
  21. Could somebody there help me to translate the statements into Windows 
  22. C program, please?
  23.  
  24. Thanks in advance.
  25.  
  26. David 
  27.  
  28.  
  29.