Error in Help/ReadFile()

Working on new editor enhancements?
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Error in Help/ReadFile()

Post by utopiomania »

Just spent some time on this, the sample is from ReadFile() in Help:

Code: Select all

  If ReadFile(0,"Text.txt")   ; if the file could be read, we continue...
    While Eof(0) <> 0         ; loop as long the 'end of file' isn't reached
      Debug ReadString()      ; display line by line in the debug window
    Wend
    CloseFile(0)              ; close the previously opened file
  Else
    MessageRequester("Information","Couldn't open the file!")
  EndIf
The test should be:

Code: Select all

    While Eof(0) = 0
Pupil
Enthusiast
Enthusiast
Posts: 715
Joined: Fri Apr 25, 2003 3:56 pm

Post by Pupil »

Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

This has already been fixed two times.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Maybe it's unfixed again. I have the latest version (PureBasic_3_94_(ayay50).exe), and the Help is still wrong.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It has been fixed two times in the latest version of the help file and the fixed version hasn't been published yet.

Edit: by the way, the ayay50 thing is randomly generated to prevent link leaching to unregistred users.
Last edited by Trond on Sat Nov 19, 2005 8:32 pm, edited 1 time in total.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2148
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Post by Andre »

The fix was done after the release of v3.94. So sorry.

Correct example is already in the online-help on www.PureArea.net :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

Thanks! :)
Post Reply