Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Seq File read write Problems

Author
Message
PeterLewis
20
Years of Service
User Offline
Joined: 27th Sep 2003
Location: South Africa
Posted: 27th Sep 2003 12:42
In the attached code I cannot read/write to position 0

Please help
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Sep 2003 16:46
Hi.

like what its does, I made it work by doing a gosub writefile before your readfile. works when I ask it to do line 0.

In Space No One can Hear You Scream! (When your comm Line is cut?)
PeterLewis
20
Years of Service
User Offline
Joined: 27th Sep 2003
Location: South Africa
Posted: 27th Sep 2003 18:52
I tried the above message but all it does is create an empty file.

Please could you give the code with it

Thanks
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 27th Sep 2003 23:07
here's your code with the one line added. not sure if you are meaning that when you rerun it again it has fogotten what was put in, if that is so when you do a if file exist rename the file if its there instead of deleteing it, then read in the new file name.
hope that makes it clear.



In Space No One can Hear You Scream! (When your comm Line is cut?)
PeterLewis
20
Years of Service
User Offline
Joined: 27th Sep 2003
Location: South Africa
Posted: 27th Sep 2003 23:22
Guys Thanks the problem was solved

When testing this short section I was pressing the Esc to exit the loop.

This wrote 0's to the first record in the file.

Thank you to Richard Davey for showing me this problem

Login to post a reply

Server time is: 2024-09-21 01:08:36
Your offset time is: 2024-09-21 01:08:36