Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 4.0 aka C# 2010 > BOOK: Beginning Visual C# 2010
|
BOOK: Beginning Visual C# 2010
This is the forum to discuss the Wrox book Beginning Visual C# 2010 by Karli Watson, Christian Nagel, Jacob Hammer Pedersen, Jon D. Reid, Morgan Skinner, ; ISBN: 9780470502266
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual C# 2010 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
 
Old July 15th, 2012, 04:25 PM
Authorized User
 
Join Date: Jan 2011
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default Chapter 21: Try It Out: Writing Data to Random Access File

Hi guys,

I was doing the exercise for chapter 21; Try It Out : Writing Data to Random Access File.

I ran the exact code the authors wrote. The program runs well and the file is created and everything, but there is nothing in the file.

I have been trying to get any of the authors to respond to my questions, but to no avail. Can anyone please tell me whats wrong?

Thank you.
 
Old July 15th, 2012, 05:06 PM
Wrox Author
 
Join Date: Sep 2010
Posts: 175
Thanks: 3
Thanked 53 Times in 53 Posts
Default

Did you do a Close or Dispose? Maybe just the buffer wasn't written to the disk.

Malie, how did you try to get in contact with the authors?
__________________
Christian
CN innovation
Visit my blog at: csharp.christiannagel.com
Follow me on twitter: @christiannagel
 
Old July 16th, 2012, 03:26 AM
Authorized User
 
Join Date: Jan 2011
Posts: 41
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yeah thanks. You were right. I closed the stream and it worked. I think the authors dont read through the code, giving us unnecessary headache.

Thanks again.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 21 Monitoring the File System samuraisxmali BOOK: Beginning Visual C# 2010 7 December 16th, 2011 07:45 AM
Getting Data from a VB5 Random File lowell Visual Basic 2005 Basics 11 July 5th, 2007 05:39 AM
Writing data to a CSV file vc1 Classic ASP Components 1 September 28th, 2005 08:26 AM
Writing a dataset into an access file pankaj_daga ADO.NET 10 March 16th, 2004 10:37 AM
Writing a dataset into an access file pankaj_daga Access 0 March 12th, 2004 10:01 AM





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