• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

data conversion

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I downloaded the FBN assignment. I have a few doubts about the data conversion tool:
a. For the data conversion program, whe i looked into the suncertify.db package, i noticed that the RandomAccessFile was reading the data from a file in ascii mode? So if my data conversion program writes the ascii data in binary mode, how will Data class be able to read it?
b. Should the data conersion tool make use of any classes in suncertify.db package?
Thanks if somebody can clarify these doubts, that will be great in getting me started.
 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is my understanding that we are to write a stand alone tool that converts the ascii file to binary and then we are to modify the existing db package files to access the new binary files.
 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mani & Paul,
I'm not sure where y'all are going, so I'll just point out that the existing classes in suncertify.db provide all you need to write the "binary" file. There's a lot of benefit in code reuse, especially in this case. My instructions did not imply that I should modify the binary format, so I saw no implication that I should modify Data, DataInfo, and FieldInfo to access a new format.
Check this thread for a more complete discussion of the issue.
Jerry
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey folks I agree with jPly. If you read an ASCII file and write a binary file, what is the problem???. The Data class is meant to read a binary file. If you want to change it that's a different issue. But, they why would you change it. Any solid reasons!!!.
Its simple, you are given a program that reads binary file, and an ASCII file. To execute the program you can do two things :
1.) convert ASCII to binary.
2.) modify program to read ASCII.
What is your choice now??
Rahul sri
 
A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic