<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Windows File Writing...' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Windows File Writing...' posted on the 'Windows programming' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 10:26:46 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 10:26:46 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230058/windows-file-writing/</link>
      <description>OK, I just read on the MSDN that opening a file with "fopen()" and using the mode "a+" will not allow you to over-write data in a file. I have just made an MP3 tag editor, and I need to over-write data with it. I don't know the format of the encoded data, so I can't buffer the entire file to memory and then burst it into a new file, but I do know the EXACT locations of the data I want to modify. How can I do this?&lt;br /&gt;
&lt;br /&gt;
-&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230058/windows-file-writing/</guid>
      <pubDate>Mon, 08 Dec 2003 11:08:03 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230081/re-windows-file-writing/#230081</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by AsmGuru62 at  2003-12-8 12:46:29&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: OK, I just read on the MSDN that opening a file with "fopen()" and using the mode "a+" will not allow you to over-write data in a file. I have just made an MP3 tag editor, and I need to over-write data with it. I don't know the format of the encoded data, so I can't buffer the entire file to memory and then burst it into a new file, but I do know the EXACT locations of the data I want to modify. How can I do this?&lt;br /&gt;
: &lt;br /&gt;
: -&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
: &lt;br /&gt;
&lt;pre class="sourcecode"&gt;
FILE* pFile = fopen ("any file name here", "r+b");

fseek (pFile, 1762, SEEK_SET);
// ^^^ go to exact location of 1762 bytes
// from the beginning of the file

// write a few (five symbols) bytes at this location:
fwrite ("Hello", sizeof (char), 5, pFile);
fclose (pFile);
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230081/re-windows-file-writing/#230081</guid>
      <pubDate>Mon, 08 Dec 2003 12:46:10 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230119/re-windows-file-writing/#230119</link>
      <description>Yeah I figured it out, but not thanks to MSDN. I have (once again) the wonder Linux MAN pages to thank. I really should just leave an SSH2 terminal open to one of my Linux-boxes 24/7 for stuff like this that M$ "forgets" to post or posts wrong. Too bad those pages don't have the Win32 GUI functions and such in them, that'd make it super-easy to find anything :D!&lt;br /&gt;
-&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230119/re-windows-file-writing/#230119</guid>
      <pubDate>Mon, 08 Dec 2003 15:40:09 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230277/re-windows-file-writing/#230277</link>
      <description>: Yeah I figured it out, but not thanks to MSDN. I have (once again) the wonder Linux MAN pages to thank. I really should just leave an SSH2 terminal open to one of my Linux-boxes 24/7 for stuff like this that M$ "forgets" to post or posts wrong. Too bad those pages don't have the Win32 GUI functions and such in them, that'd make it super-easy to find anything :D!&lt;br /&gt;
: -&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;span style="color: Blue;"&gt;Win32 GUI? No problem...&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/functions_by_category.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/functions_by_category.asp&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I always post that link - super-easy to find whatever you need to find.&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230277/re-windows-file-writing/#230277</guid>
      <pubDate>Tue, 09 Dec 2003 07:43:44 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230323/re-windows-file-writing/#230323</link>
      <description>: &lt;span style="color: Blue;"&gt;Win32 GUI? No problem...&lt;br /&gt;
: &lt;br /&gt;
: &lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/functions_by_category.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/functions_by_category.asp&lt;/a&gt;&lt;br /&gt;
: &lt;br /&gt;
: I always post that link - super-easy to find whatever you need to find.&lt;br /&gt;
: &lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
Added to favorites.&lt;br /&gt;
&lt;br /&gt;
-&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230323/re-windows-file-writing/#230323</guid>
      <pubDate>Tue, 09 Dec 2003 11:16:37 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230379/re-windows-file-writing/#230379</link>
      <description>: Added to &lt;strong&gt;&lt;em&gt;favorites&lt;/em&gt;&lt;/strong&gt;.&lt;br /&gt;
&lt;br /&gt;
Mr Open Source is using IE! ;)&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230379/re-windows-file-writing/#230379</guid>
      <pubDate>Tue, 09 Dec 2003 15:36:46 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230533/re-windows-file-writing/#230533</link>
      <description>: : Added to &lt;strong&gt;&lt;em&gt;favorites&lt;/em&gt;&lt;/strong&gt;.&lt;br /&gt;
: &lt;br /&gt;
: Mr Open Source is using IE! ;)&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
&lt;span style="color: Blue;"&gt;...erm... yeah, it is a free country... - I think, Seph has both in his cellar...&lt;/span&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230533/re-windows-file-writing/#230533</guid>
      <pubDate>Wed, 10 Dec 2003 09:32:11 -0700</pubDate>
      <category>Windows programming</category>
    </item>
    <item>
      <title>Re: Windows File Writing...</title>
      <link>http://www.programmersheaven.com/mb/windows/230058/230632/re-windows-file-writing/#230632</link>
      <description>: : : Added to &lt;strong&gt;&lt;em&gt;favorites&lt;/em&gt;&lt;/strong&gt;.&lt;br /&gt;
: : &lt;br /&gt;
: : Mr Open Source is using IE! ;)&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: &lt;span style="color: Blue;"&gt;...erm... yeah, it is a free country... - I think, Seph has both in his cellar...&lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
I use IE because it doesn't crash or is crappy as hell like NutScrape, and because it comes integrated into Windoze. Does all I need anyway. However, if I was a major web-guy, I'd use Opera or something. Oh wait, LONG LIVE LYNX!! If you don't get it you just don't know.&lt;br /&gt;
&lt;br /&gt;
-&lt;em&gt;&lt;strong&gt;&lt;span style="color: Red;"&gt;S&lt;/span&gt;&lt;span style="color: Purple;"&gt;e&lt;/span&gt;&lt;span style="color: Blue;"&gt;p&lt;/span&gt;&lt;span style="color: Green;"&gt;h&lt;/span&gt;&lt;span style="color: Red;"&gt;i&lt;/span&gt;&lt;span style="color: Purple;"&gt;r&lt;/span&gt;&lt;span style="color: Blue;"&gt;o&lt;/span&gt;&lt;span style="color: Green;"&gt;t&lt;/span&gt;&lt;span style="color: Red;"&gt;h&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/windows/230058/230632/re-windows-file-writing/#230632</guid>
      <pubDate>Wed, 10 Dec 2003 18:52:03 -0700</pubDate>
      <category>Windows programming</category>
    </item>
  </channel>
</rss>