|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Sequential and binary files
Can anyone explain the difference in the processing required to update a record in a sequential text file and a random access binary file. Any example would be welcome.
Thanks |
|
#2
|
||||
|
||||
|
Without any context, your question is ambiguous. But I imagine that sequentially it is expected that each modification requires the entire file to be rewritten, whereas with random access, the record can be modified in-place.
For random access to to work, each record must be of a known and identical size. or have some sort of index or directory. An easy way to implement random access files is to use memory mapped files. Memory mapped file implementation is platform specific and relies on virtual memory support from the OS and CPU. Clifford |
|
#3
|
|||
|
|||
|
Quote:
thanks for the help |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > Sequential and binary files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|