home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!uoft02.utoledo.edu!qding
- From: qding@uoft02.utoledo.edu
- Newsgroups: comp.lang.c
- Subject: Help: Save data in Windows C program
- Message-ID: <1992Dec30.000557.734@uoft02.utoledo.edu>
- Date: 30 Dec 92 00:05:57 EST
- Organization: University of Toledo, Computer Services
- Lines: 19
-
- Hi, dear netters.
-
- I am a new Windows programmer. I am traslating a DOS program to Windows.
- One problem I got is that I can not write something to the disk by using
- the original program. The program is:
-
- FILE *fp;
- fp=fopen("test.dat", "w");
- fprintf(fp, "%s", "some data");
- fclose(fp);
-
- Could somebody there help me to translate the statements into Windows
- C program, please?
-
- Thanks in advance.
-
- David
-
-
-