Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-19-2007, 04:35 PM
Member
 
Join Date: Dec 2007
Posts: 6
janakiram.attuluri is on a distinguished road
Reading Binary File and Changing data
Hi All,

1) I have Binary file and also i have the strusture of the file which is in c++.in the file structure 160 fields are there in tht there is a field cocot_ind=0 which type of short.

2) That binary file(with .DAT extension) is coming from one application. I need to write a utility program which reads that binary file and change the value of cocot_ind=1
and write it to another binary file.

can anyone please help me on this.

Thanks in advance.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-21-2007, 12:10 PM
CaptainMorgan's Avatar
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Check these out:
Learning Java - Chapter 9 : Java
CHAPTER 86 Reading Binary Files
Java Programming - reading binary file
Introduction from Working with Binary Files in Java
Write some data in binary : Data Input Output*«*File Input Output*«*Java
CHAPTER 85 Writing to Binary Files
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading a Field in a Binary File janakiram.attuluri Advanced Java 2 01-09-2008 12:47 PM
reading a binary file with a RAF jkurth Advanced Java 2 12-20-2007 09:30 AM
Reading Data from a file ramachandran New To Java 2 10-24-2007 09:22 AM
Reading in data from file line by line bluekswing New To Java 1 10-02-2007 02:19 AM
Reading file data that contains no spaces jdepue Advanced Java 1 08-01-2007 06:58 AM


All times are GMT +3. The time now is 11:33 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org