Format for ReadCharacter()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Format for ReadCharacter()

Post by Trond »

We have ReadStringFormat() to detect the file format. But when we want to read characters from it, we're stuck with reading one or two bytes depending on the program's unicode mode. It's not possible to use the detected information to read a single character correctly.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Perhaps a 'length' parameter for ReadString would be more elegant? Dunno', actually :-)
( 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... )
Post Reply