FREAD / FWRITE

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
Templar
Posts: 29
Joined: Sun Apr 01, 2018 5:37 pm
DBs Used: DBF
Has thanked: 1 time
Been thanked: 1 time

FREAD / FWRITE

Post by Templar » Sat Apr 21, 2018 4:00 pm

Anybodye else playing about with these? I have spent a very frustrating today trying to get an FWRITE to work and failed completely. It looks ok, opens ok, returns the correct value and even updates the file date/time. But it hasn't actually written new values.
The only way round seems to be to FERASE the file and FCREATE again, which works.
Odd? :?
Templar

User avatar
andyglezl
Posts: 981
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 20 times
Been thanked: 41 times
Contact:

Post by andyglezl » Sat Apr 21, 2018 5:30 pm

Aquí hay un ejemplo...
-----------------------------
Here is an example ...

viewtopic.php?f=24&t=5644&p=55087&sid=4 ... 450#p55087

Porqué no posteas tu .prg para ver como lo haces ????
-------------------------------------------------------------------
Why do not you post your .prg to see how you do it ????
Andrés González López
Desde Guadalajara, Jalisco. México.

Templar
Posts: 29
Joined: Sun Apr 01, 2018 5:37 pm
DBs Used: DBF
Has thanked: 1 time
Been thanked: 1 time

Post by Templar » Tue Apr 24, 2018 12:38 pm

Thanks. 've played around some more and now it's working fine, so I'm puzled as to why it wasn't before. Probably just my stupidity (most problems in my life are caused by that!) :)
Templar

Post Reply