forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Trying to read past end of file error
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Mon Mar 06, 2006 4:10 pm    Post subject: Trying to read past end of file error Reply with quote

Norbert,

Would status='OLD', action='READ' fail if the file existed but was empty ? That would cover this case of a file that is empty.
Otherwise you could write a routine that tests for file size, which tests for existence and detects the size of the file. FILE_SIZE@ could be used to test the size and presumably existence of a file. Note size is KIND=3 (I*4), and error_code is KIND=2 (I*2), so I'm not sure what happens if the file is bigger than 2gb.

Regards John
Back to top
View user's profile Send private message
ursuselasticus



Joined: 26 Mar 2005
Posts: 71

PostPosted: Tue Mar 07, 2006 12:50 pm    Post subject: Trying to read past end of file error Reply with quote

Thanks John,

gonna include this in my coding. As my files will sure not exceed 2GB in size I guess this is a pretty save approach.

Regards

Norbert
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group