C programming Bangla Tutorial 5.231 : File | Writing to a file using fputc()

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 27

  • @prettyjannat7737
    @prettyjannat7737 5 років тому +2

    I am very grateful to you sir..Because each & every topics you can teach us such a nice way..Thanks a lot sir..Insha Allah you will always help us in this way..

  • @rifatbinsultana3196
    @rifatbinsultana3196 6 років тому +1

    excellent vaia...Thank you .

  • @shawonmizi2208
    @shawonmizi2208 6 років тому +1

    you are really excellent bro

  • @jonayethossain7645
    @jonayethossain7645 4 роки тому

    Thank you very much,, Brother..

  • @asmtamzid2725
    @asmtamzid2725 3 роки тому +1

    Thanks a lot

  • @mohammadabdullahaalforhad1375
    @mohammadabdullahaalforhad1375 11 місяців тому

    Thank you so much.

  • @Jolontokhalilswork
    @Jolontokhalilswork 5 років тому +3

    boss apni

  • @saifulislamsarfaraz
    @saifulislamsarfaraz 5 років тому

    ami sotti khubi osadharon bujhan ,
    algorithm er jonno kno boi suggest korle upokrito hotam

  • @sudarshan740
    @sudarshan740 Рік тому

    Sir, Suparna Bhattacharya ke?

  • @debasishsau4323
    @debasishsau4323 5 років тому

    Dada command line arguments in c er video korun....

  • @dewannazmulislam9004
    @dewannazmulislam9004 3 роки тому

    who is Suparna bhatarchaya ....pls ans sir

  • @jahinkabir6725
    @jahinkabir6725 5 років тому

    I have a question.
    I am declaring the file pointer but i am not declaring the address of the file pointer, so how is the address of the file pointer declared..?

  • @sami_001
    @sami_001 6 місяців тому

    Brother Excuse me first
    can you kindly tell me who is Suparna Bhattacharjee?

  • @ashrafulfuad2967
    @ashrafulfuad2967 6 років тому +5

    who is Suparna bhatarchaya

    • @mehnazaktertamanna8665
      @mehnazaktertamanna8665 6 років тому +1

      😂

    • @alekhyadutta7795
      @alekhyadutta7795 5 років тому +4

      আমি শুধু এই কমেন্টটা খুঁজতেই কমেন্ট সেকশনে এলাম😂😂😂😂😂

  • @setukanti6299
    @setukanti6299 3 роки тому

    স্যার প্রজেক্টে ডাটাগুলোকে save করতে সি প্রোগ্রামের ফাইল কিভাবে ইউজ করব?

  • @ariftonoy2046
    @ariftonoy2046 5 років тому +1

    vai same program e eta error dekhacche
    #include
    int main()
    {
    FILE *file;
    char name[20]="shafi prottoy";
    int length= strlen(name);
    int i;
    file=fopen("test.txt","w");
    if(file==NULL)
    {
    printf("file doesn't exist");
    }
    else
    {
    printf("file is opened");
    for(i=0;i

  • @MDEASIN-ow7vy
    @MDEASIN-ow7vy 3 роки тому

    Vaiya Suporna Bhattachar atar mane ki?

  • @veraitisevideo3319
    @veraitisevideo3319 5 років тому

    vai same programe error asche
    #include
    int main()
    {
    FILE *file;
    char name[20]="Kamrul Hasan";
    int length = strlen(name);
    int i;
    fopen("test.txt","w");
    if(file==NULL)
    {
    printf("File doesn't exist");
    }
    else
    {
    printf("File has been opened
    ");
    for(i=0; i

    • @HasibulIslam-jd9xb
      @HasibulIslam-jd9xb 2 роки тому

      file = fopen("test.txt","w");
      apni file variable declare koren ni vai.

  • @abir.islam4
    @abir.islam4 6 років тому +1

    সেইম প্রোগ্রামে Erorr দেখাচ্ছে !

  • @MrTiger-cr1fo
    @MrTiger-cr1fo 5 років тому

    C program ব্যবহার করে বাংলা লিখব কিভাবে?

  • @sami_001
    @sami_001 6 місяців тому

    btw vhai file has written*

  • @mdsaddamhossain1107
    @mdsaddamhossain1107 2 роки тому

    #include
    #include
    #include
    #include
    int main()
    {

    FILE *file;
    char name[40];
    int age;
    int salary;

    file = fopen("saddam.txt","w");
    if (file == NULL)
    {
    printf("file doesn't exist");
    return;
    }
    else
    {
    printf("enter the name:");
    getc(name);
    fprintf(file,"name = %s
    ",name);
    printf("enter the age:");
    scanf("%d",&age);
    fprintf(file,"age = %d
    ",age);
    printf("enter the salary:");
    scanf("%d",&salary);
    fprintf(file,"salary = %d
    ",salary);

    fclose(file);
    }
    getch();
    }
    sir ai vulgula hocha ki korbo sir
    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.
    Try the new cross-platform PowerShell aka.ms/pscore6
    PS C:\Users\UCC\OneDrive\Desktop\file> cd "c:\Users\UCC\OneDrive\Desktop\file\" ; if ($?) { gcc file-writing.c -o file-writing } ; if ($?)
    { .\file-writing }
    file-writing.c: In function 'main':
    file-writing.c:19:9: warning: 'return' with no value, in function returning non-void
    return;
    ^~~~~~
    file-writing.c:5:5: note: declared here
    int main()
    ^~~~
    file-writing.c:26:14: warning: passing argument 1 of 'getc' from incompatible pointer type [-Wincompatible-pointer-types]
    getc(name);
    ^~~~
    In file included from file-writing.c:1:0:
    c:\mingw\include\stdio.h:693:43: note: expected 'FILE * {aka struct _iobuf *}' but argument is of type 'char *'
    __CRT_INLINE __cdecl __MINGW_NOTHROW int getc (FILE * __F)
    ^~~~
    enter the name:
    PS C:\Users\UCC\OneDrive\Desktop\file>