filing in c language -


possible duplicate:
replacing word in file, using c

i doing filing in c language. have created txt file , write data it. program progress have search text , replace other word problem facing suppose in file wrote

"i bought apple market"

if replace apple pineapples , apple has 5 char , pineapple has 9 char write

"i bought pineapple m market"

that has affect words written after apple because of different char length

i have use fseekpos function find pointer position

thanks

  • take data io function
  • store in double pointer ( use 2 dimension )
  • after seeing eof, clear used file, close
  • write function task , manipulate data stored in 2 dimension
  • open again, write manipulated data in

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -