R4R
Right Place For Right Person TM
 

How to use functions fseek(), freed(), fwrite() and ftell()?

previous previous previous
Question:
How to use functions fseek(), freed(), fwrite() and ftell()?

Question:How to use functions fseek(), freed(), fwrite() and ftell()?


Answer
We can use fseek(),fread(),fwrite() and ftell() functions like that, fseek(f,1,item)->Move the pointer for file f a distance 1 byte from location item. fread(s,item1,item2,f)->Enter item2 data items,each of size item1 bytes,from file f to string s. fwrite(s,item1,item2,f)->send item2 data items,each of size item1 bytes from string s to file f. ftell(f)->Return the current pointer position within file f. Functions fread,fseek and fwrite returned type is int and ftell is long int.

By:Vivek Kr. Agarwal
Date:

How to use functions fseek(), freed(), fwrite() and ftell()?

Post Your Answers


User Name:
Answers:

Related Links

  1. What do you understand about datatype?
  2. What are the data type modifiers?
  3. what are the constants?Explain in brief?
  4. How to differentiate b/n definition and declaration?
  5. How to define their types of variables and initialize them?
  6. What is type casting?Explain it with an example?
  7. What are the Array?How to define and declare them?
  8. What are the Array Indexing?explain.
  9. What do you understand about String?Explain it.
  10. What are the reserved Keywords?Explain it.
  11. What are the ANSI reserved names in C?
  12. What are the pointers?How to declare them?
  13. What are the Indirection?Explain with an example?
  14. What are the Function Pointer?Explain with an example?
  15. What are the Bit Operators?
  16. What are the External Variables?
  17. How to define structure in C?
  18. How do u understand about structures of arrays?
  19. How do you define offsetof() Macro?
  20. What the use of malloc() function?
  21. What are the different types of malloc() function in C?
  22. What is the use of calloc() function?
  23. What are the different type of calloc() function?
  24. How to use free() function?
  25. How to differentiate local memory and global memory?
  26. What is the significance of disk files?
  27. What are the Text Files and Binary Files?
  28. What are the temporary disk files?How to create them?
  29. What are the stream files?
  30. What are the stdin and stdout file?
  31. What is the stdaux file?
  32. What do you understand about Direct port I/O?
  33. What is the data management?Also define Sorting, merging and purging, Indexed files?
  34. What are the Linked List?
  35. What is the Double LinkedList?
  36. What is the difference b/n Linear search and Binary search?
  37. What do you understand about B-Tree?
  38. What is Thrashing?
  39. What is a pragma?
  40. What is the difference between the Heap and the Stack?
  41. Why n++ executes faster than n+1?
  42. What is the difference b/n a linker and linkage?
  43. What is the difference b/n run time binding and compile time binding?
  44. Write algorithm to reverse a singly linked list.
  45. WHAT IS LIMITATIONS IN C?
  46. How to use functions in arrarys? it gives a linker error that function is not defined!!
  47. Write a program to find the squares of n number using do-while.
  48. sum of all number in between range use recursive function.
  49. what happen if we declare a constructor after destructor?
  50. Write a progarm to count number of vowels,consonant,digit spaces and other character type.

Question:How to use functions fseek(), freed(), fwrite() and ftell()?

Back Home Next

Tutorials,Examples,Questions and Answer

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R