Newline using fprintf

  • frankly
  • Beginner
  • Beginner
  • frankly
  • Posts: 52

Post 3+ Months Ago

Hi,

Anyone knows how to enter a newline using fprintf? Yes I wanna stick with fprintf coz I am not really outputting a char arry to the file.

Thanz!! :)
  • frankly
  • Beginner
  • Beginner
  • frankly
  • Posts: 52

Post 3+ Months Ago

O....funny don't know why I closed the project and then opened it again, it's alright now. haha cool
But do you know how to read the file using fscanf then? I mean read one line at a time, normally we'r use fgets or gets but then again I wanna do it with fscanf, do u know how? I guess maybe sth like append read?
What should be the "format" field of fopen actually? Is it still "r"?

And one more thing, does the offset automatically set to the last time fscanf position? Or else it'll keep reading the same data.....and seems like it is the case for me now. 8O

Thanz!! :)

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 69 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.