Mahashivratri wish unique way. || Animation text code in C language.

Mahashivratri wish unique way

process

1. Create a txt file "Shivratri".all contain of file
   given after the code.   
   

All Source Code Given Below

#include<stdio.h>
#include <stdlib.h>
#include <string.h>

void delay(){
    for(int i=0; i<10000; i++){
        for(int j=0; j<100; j++)
              {}
    }
}
int main(){
    FILE *ptr;
    char c;
    ptr=fopen("Shivratri.txt","r");
    c=fgetc(ptr);
    printf("\n");

while(c!=EOF){
    delay();
    printf("%c",c);
    c=fgetc(ptr);
}

int i=0;
while(i<100){
    system("COLOR E");
    system("COLOR 5");
    system("COLOR C");
    system("COLOR 9");
}
return 0;}

Contain of txt file

  
888    888                              
888    888                                     
888    888                                     
8888888888  8888b.  88888b.  88888b.  888  888 
888    888     "88b 888 "88b 888 "88b 888  888 
888    888 .d888888 888  888 888  888 888  888 
888    888 888  888 888 d88P 888 d88P Y88b 888 
888    888 "Y888888 88888P"  88888P"   "Y88888 
                    888      888           888 
                    888      888      Y8b d88P 
                    888      888       "Y88P"  
                    


888b     d888          888                     .d8888b.  888      d8b                          888            d8b 
8888b   d8888          888                    d88P  Y88b 888      Y8P                          888            Y8P 
88888b.d88888          888                    Y88b.      888                                   888                
888Y88888P888  8888b.  88888b.   8888b.        "Y888b.   88888b.  888 888  888 888d888 8888b.  888888 888d888 888 
888 Y888P 888     "88b 888 "88b     "88b          "Y88b. 888 "88b 888 888  888 888P"      "88b 888    888P"   888 
888  Y8P  888 .d888888 888  888 .d888888            "888 888  888 888 Y88  88P 888    .d888888 888    888     888 
888   "   888 888  888 888  888 888  888      Y88b  d88P 888  888 888  Y8bd8P  888    888  888 Y88b.  888     888 
888       888 "Y888888 888  888 "Y888888       "Y8888P"  888  888 888   Y88P   888    "Y888888  "Y888 888     888 
                                                                                                                  
                                                                                                                  
                                                                                                                  
  
  
Previous Post Next Post