🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #94

File Problem

#94
From: Trevor Ings
Date: Wed, 24 May 2000 00:00
29 lines
2066 bytes
Hi all....
    I am new to the newsgroup thing but thought that I would give it a
crack....
anyway's tthe problem is such.

I am reading in data from a text file into my structs...... then the program
does all its crap..... then I re-write the modified data back to file .....
the file should never change in the quantity of records read or written.....
ok the program does this ( or seems to at first)

SCENERIO:
I read records from file read_records ..... a total of 32 records were
read...... I did all the crap ..... I wrote records to file
wote_file........ I visually compared files (no noticeable difference).....
I did a character count on both files ...... exactly the same ..... I double
checked format ..... EXACTLY the same ..... O.K. so whats the prob you ask?

Logically , if I read in the file wrote_file ...... which is in the same
format ....... I should get 32 records again ..... but no I get 33, the
strange thing here is that when I now re-examine the file wrote_file .....
that is after I have tried reading it...... there is now an extra record at
the top of file...... as if it appeared there when I tried to read the
file...... the extra data is in format but it consist of all (0's)
obviously.

I am hoping that by shear luck that someone out there who reads this letter
has maybe tread the same path .
If you are that person PLEASE PLEASE help me .... and as everone else seems
to do THANKS IN ADVANCE if you can
Technical Details
Message-ID: <QRPW4.540$N4.13329@ozemail.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4ba,9e260c8dc1d14e,start
X-Google-Attributes: gid10d4ba,public
From: "Trevor Ings" <twi01@ozemail.com.au>
Subject: File Problem
Date: 2000/05/24
Message-ID: <QRPW4.540$N4.13329@ozemail.com.au>
X-Deja-AN: 626689944
Distribution: world
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Trace: ozemail.com.au 959171056 203.10.91.40 (Wed, 24 May 2000 22:24:16 EST)
Organization: OzEmail Ltd, Australia
X-MSMail-Priority: Normal
NNTP-Posting-Date: Wed, 24 May 2000 22:24:16 EST
Newsgroups: att.lang.c++