Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void consultar_grupo(){
- int c;
- FILE *txt;
- txt = fopen("grupos_musicales", "rt");
- if(txt==NULL){
- printf("Error al tratar de leer el archivo");
- }
- while((c=fgetc(txt))!=EOF){
- if(c=='\n'){
- printf("\n");
- }
- else{
- putchar(c);
- }
- }
- fclose(txt);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement