<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>usbd_msc example, about f_lseek() usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72486/usbd_msc-example-about-f_lseek-usage</link><description>Hi, dear all: 
 I’m trying to use usbd_msc example(nrf 52840 DK/sdk 17.0.2 ) and written a string A (8 bytes) into a .txt file； 
 Now I want write the same file another string B at the end of A； 
 And,I know I should use f_lseek(&amp;amp;file, 8) to move the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Mar 2021 01:50:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72486/usbd_msc-example-about-f_lseek-usage" /><item><title>RE: usbd_msc example, about f_lseek() usage</title><link>https://devzone.nordicsemi.com/thread/298538?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 01:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c303e85-62e3-41e3-9add-e056706f0a96</guid><dc:creator>Chris_</dc:creator><description>&lt;p&gt;Thanks a lot,！&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I do as your suggestion, It works as my expect when I set f_open(my_file, my_filename, FA_OPEN_ALWAYS | FA_WRITE | FA_OPEN_APPEND)，&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: usbd_msc example, about f_lseek() usage</title><link>https://devzone.nordicsemi.com/thread/298341?ContentTypeID=1</link><pubDate>Mon, 08 Mar 2021 11:36:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d0eeacc-2d37-4373-b188-88fb024f9c00</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;if you need to move pointer to the end of file, either open it with FA_OPEN_APPEND flag, or use very large offset (LONG_MAX, 0x7fffffff) in f_lseek.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>