Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 7:46 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: read and write files
PostPosted: July 21st, 2008, 9:23 pm 
Offline

Joined: July 11th, 2008, 7:44 pm
Posts: 16
Location: Oss, The Netherlands
I need some help with a strange problem.
I save a .txt file on the disk.
With an other button i read that file from the disk an store it in a variable.
So far nothing strange.

When i want to read the file the second time nothing happens.
Why can i load a file only once?

Kind regards,

Marian


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 21st, 2008, 11:03 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
It sounds like the file marker is in the wrong place which happens if you don't close the file after you've finished.

I've never had this specific problem, but I'd guess that if you wrote to an open file and then read from the same file, without closing it first that it would try to read the content after the line that was written (hence nothing).

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group