PORTS Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
This forum is closed to new activity.
The posts are available to browse, but posting has been disabled. BIG THANKS to all who have participated and shared your knowledge over the past 13 years.
Aug 11, 2023
Home
Help
Search
Login
Register
PORTS Forum
»
Ports and Interfaces
»
General Discussion
»
Editing long files
« previous
next »
Print
Pages: [
1
]
Author
Topic: Editing long files (Read 27816 times)
henson
Member
Posts: 2
Editing long files
«
on:
April 23, 2012, 11: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: 3033
Re: Editing long files
«
Reply #1 on:
April 23, 2012, 01:07:45 pm »
Clusters in a volume are a fixed size. No way to insert a partial cluster.
Jan
Logged
henson
Member
Posts: 2
Re: Editing long files
«
Reply #2 on:
April 23, 2012, 02: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: 3033
Re: Editing long files
«
Reply #3 on:
April 23, 2012, 02: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
Print
Pages: [
1
]
« previous
next »
PORTS Forum
»
Ports and Interfaces
»
General Discussion
»
Editing long files