Plese use the code block button for posting code snippets.
ashish8patil wrote:
i this code it is writting & reading stuct data ,BUt not changing that data i want change that data
What do you mean with this? Your program sets the fields of the struct, then write it to disk, and finally read it again from disk. How these operations are supposed to change the content? What is your expected output? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]