Newline using fprintf

  • frankly
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Feb 28, 2003
  • Posts: 52
  • Status: Offline

Post March 20th, 2003, 10:08 am

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!! :)
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 20th, 2003, 10:08 am

  • frankly
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Feb 28, 2003
  • Posts: 52
  • Status: Offline

Post March 20th, 2003, 11:24 am

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 187 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.