[Implemented] ReadAscii(#File)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

[Implemented] ReadAscii(#File)

Post by nco2k »

Code: Select all

ReadAscii(#File)
WriteAscii(#File, Number)

ReadUnicode(#File)
WriteUnicode(#File, Number)
c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Why? There are flags for the Read... and Write... commands?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

im not talking about strings. im talking about the new unsigned data types. :wink:

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Ah, yes. That's how confusing those naming schemes are!

Can't help myself, let's pitch for ReadUByte() instead of ReadAscii(), and ReadUWord() instead of ReadUnicode()... Honestly, ReadUnicode() is about the most misleading instruction I've ever run into thus far.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Its probably going to be ReadAsciiCharacter() and ReadUnicodeCharacter() and thats not misleading at all.
quidquid Latine dictum sit altum videtur
Post Reply