• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reg. Database Conversion Utility

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do we need to use the data class to create the binary file from the ascii file? If yes, then how do we define a fieldInfo object specifying the variable length(integer)? The length of the field is where I am getting confused !
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The length of the field is dynamic.It should be specified while creating the binary file.You should use the data class only to determine which position in the binary file contains what.
Just use the reverse process to create the binary file - whatever the data class is reads, your conversion tool should write that to the file.
Hope this helps
Junaid
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry my first message had some typos and errors. This is the right one. As Iam not registered as yet, I cant edit the messages.
The length of the field is dynamic.It should be specified while creating the binary file.You should use the data class only to determine which position in the binary file contains what.
Just use the reverse process to create the binary file - whatever the data class reads, your conversion tool should write that to the file.
Hope this helps
Junaid
reply
    Bookmark Topic Watch Topic
  • New Topic