Ports
May 21, 2013, 07:56:32 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Editing long files  (Read 2157 times)
henson
Member
*
Posts: 2


« on: April 23, 2012, 10:28:05 am »

It would seem that adding a few bytes (such as with a text editor) in the middle of a long file would require rewriting the file from the edit to the end.
Or, is there a way to put a partial cluster/sector in the middle?  The "USB Mass Storage" text does not specifically mention this common procedure.

Thanks.  JCH
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1627


WWW
« Reply #1 on: April 23, 2012, 12:07:45 pm »

Clusters in a volume are a fixed size. No way to insert a partial cluster.

Jan
Logged
henson
Member
*
Posts: 2


« Reply #2 on: April 23, 2012, 01:15:22 pm »

So the answer is yes, the file from the edit insertion on must be rewritten.  Only the last cluster may be partially filled.

Very useful and well written book, by the way.  How about Bluetooth/ZigBee next? 

Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1627


WWW
« Reply #3 on: April 23, 2012, 01:19:13 pm »

I'm glad you found USB Mass Storage useful, and I always welcome suggestions for things to write about. Zigbee and Bluetooth have been on my "short list" for a while.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!