Getw And Putw

in Hindi - Getw And Putw



not yet

Source Code :

RUN#include <stdio.h>
#include <conio.h>

int main()
{
int i, num;
FILE *fptr;

fptr=fopen("File.txt","w");

for(i=1;i<=10;i++)
{
putw(i,fptr); // write integers to Opened file
}
fclose(fptr);

fptr=fopen("File.txt","r");

while((num = getw(fptr))!= EOF){  // read integers to Opened file
printf("%d\n", num);
}
fclose(fptr);

return 0;
}