Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
| Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 2nd, 2005, 08:50 AM
Authorized User
 
Join Date: Dec 2004
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading field of 'Long' datatype from binary file

Hi,

Need to read a field of 'Long' datatype from a binary file in my C# program. I am able to read fields of 'character' type. But, do not know how to read the 'Long' field. If i read 4 bytes, cast them one by one to chars and then concatenate, i am getting junk value. Need your help pls.

Thanks in advance.

Regards,
Peri




Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening Text file in Binary mode for reading lawsoncobol Access VBA 1 August 3rd, 2006 04:01 AM
ORA-17110 with Java - Long datatype holdmykidney Oracle 0 January 16th, 2006 12:52 PM
How to save an OLE Object to Long Binary being_oblivious VB How-To 0 August 1st, 2005 11:53 PM
Modifying long text in a long field sajsal Classic ASP Databases 1 February 20th, 2004 12:36 PM
Reading from a text file and writing to a Binary 1 scott01 C++ Programming 0 July 28th, 2003 03:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.