Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reg. Database Conversion Utility

 
Swapan Golla
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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 !
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic