• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Can you account for File Pointer length

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi
The binary file for the assignment when i tried to display the values using Data class it displayed the following line without spaces.
158924Flight number5Origin airport3Destination airport3Carrier25Price6Day3Time5Duration7Available seats4-1061111106158
Then i tried to break it down using string identifers (like
Header length(UTF) so anything before : is my constant
and UTF and int are formats of read by Data Class
Header Length (int): 158
Feilds (int): 9
Record Count(int): 24
Field Name(UTF): Flight number
Feild Length(int): 5
Field Name(UTF): Origin airport
Feild Length(int): 3
Field Name(UTF): Destination airport
Feild Length(int): 3
Field Name(UTF): Carrier
Feild Length(int): 25
Field Name(UTF): Price
Feild Length(int): 6
Field Name(UTF): Day
Feild Length(int): 3
Field Name(UTF): Time
Feild Length(int): 5
Field Name(UTF): Duration
Feild Length(int): 7
Field Name(UTF): Available seats
Feild Length(int): 4
MAGIC Number(int): -1061111106
File Pointer(int): 158
Please can any one tell me how the 158 bytes which file pointer points to can be accounted by the above information
Farouk
 
Farouk Mohamed1
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all gurus
plz reply
Farouk
 
But how did the elephant get like that? What did you do? I think all we can do now is read this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic