It is currently Wed Nov 22, 2017 8:28 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ReadString
PostPosted: Mon Apr 24, 2017 6:50 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 582
Help wrote:
Read a string from a file until an 'End Of Line' character is found (Unix, DOS and Macintosh file formats are supported).

There should be a hint that reading the string is also interrupted even when a 'null' character occurs.

Code:
OpenFile (0, "D:\Test.txt")

WriteString  (0, "String1")
WriteByte    (0, 0)
WriteString  (0, "String2")
WriteByte    (0, 0)

FileSeek (0, 0)
Debug ReadString (0)
Debug ReadString (0)

_________________
sorry for my bad english


Last edited by Josh on Mon Apr 24, 2017 12:40 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Write String
PostPosted: Mon Apr 24, 2017 10:53 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5687
Location: Wales, UK
So this is about the documentation of ReadString rather than WriteString?

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Write String
PostPosted: Mon Apr 24, 2017 12:24 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Feb 13, 2010 3:45 pm
Posts: 582
IdeasVacuum wrote:
So this is about the documentation of ReadString rather than WriteString?


Ups. Subject changed from WriteString to ReadString

_________________
sorry for my bad english


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye