On 28/12/2011 11:31, Bob Spelten wrote:
Op Mon, 26 Dec 2011 12:25:40 +0100 schreef George Gwilt
<[email protected]>:
I have just used QD to examine a file with the longest possible name.
The name was actually
ram1_abcdefghijklmnopqrstuvwxyz123456_wda. Although QD displayed the
contents of the file correctly, it did so with a purple coloured ink.
This ink was set for all other files read in provided the name was
not of maximum length. The file
ram1_abcdefghijklmnopqrstuvwxyz12345_wda1 reset the colour to a
rather fainter, almost unreadable, purple.
Is this a new feature of QD? Has anyone noticed this before?
Normally I avoid maximum length filenames but I repeated your experiment
on my QPC2 (in 16 bit colour mode) with QD (vB01) and an ASCII test file.
A maximum name with a 3 character extension produced 'dark grey' text, to
be precise, a black and white stipple type zero.
A maximum name with a 4 character extension produced 'pink' text, a red
and white stipple type 3.
Although the white may have been the light grey background my QD normally
uses.
Loading another file in the same QD kept the grey or pink colour intact.
The resulting colours may be depending on the QD configuration or your
theme setting.
Furthermore I could not load the file into QD with FileInfo2, which I
often use to look at any type of file, QD was started but the text was
not
loaded and QD reported 'no name' so normal Load from QD was used instead.
It seems to be another QD feature because executing the text into
VIEW_FILE from FI2 worked OK.
Renaming the file to 35 characters made the FI2/QD combination behave
normal again.
Best wishes for a QLing 2012,
Bob
Darn it - I cannot find the reference in the SBASIC/SuperBASIC Reference
Manual, but I remember investigating the maximum filename length some
years ago.
Supposedly, the maximum filename length (including the device) is 42
characters.
However, if you need to access the filename over the network port, the
device name increases by 3 (for the n1_ prefix) or 4 (for n64_ prefix).
Even more oddly, the filename can then only be a maximum of 41
characters (IIRC) over the network.
This means that allowing 4 characters for network access and 5 for the
standard device identifier, the maximum usable filename length is
41-(5+4) = 32 characters.
I have not tried this, but if I have :
DEV_USE 1,flp1_GAMES_
Does this mean I can have a file within the GAMES subdirectory which has
a filename of 32 characters still, and access it with:
LOAD DEV1_abcdefghijklmnopqrstuvqyxz012345
--
Rich Mellor
RWAP Software
Specialist Retro Computer Dealer
http://www.rwapsoftware.co.uk
-- Try out our new site: http://sellmyretro.com
_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm