Ver Mensaje Individual
  #9 (permalink)  
Antiguo 05/11/2006, 09:10
pedro_cesar
 
Fecha de Ingreso: septiembre-2006
Mensajes: 328
Antigüedad: 17 años, 8 meses
Puntos: 3
#include <stdio.h>
#include <stdlib.h>

int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {

FILE *file;
char string [15] = "Mi programa\n";
int cont;

file = fopen ("C:\\XeV.txt", "w");

cont =1;

do {

fputs (string, file);

cont++;

} while (cont <=10);
fclose (file);
}

Todavia no funciona. :S