Jump to content
Developer Wiki and Function Reference Links ×

Long filenames for txt files fail


Petri

Recommended Posts

(Sorry for cross-posting, but this is really an important & urgent thing!)

In a very specific system for a client, I need to generate a series of text files, automatically named.

The syntax & circumstances may result in quite long names and on the Mac OS9 platform (my development platform), I realise that they exceed the maximum allowed length.

Unfortunately, the same seems to be the case on the Windows platform (the client's platform.) When the name string exceeds the Mac filename limitation, export fails.

Is anyone on Windows kind enough to run this script and report how many 'abc's they get? This is really puzzling!

PROCEDURE test;

VAR

i, n : INTEGER;

output, fName, addition : STRING;

BEGIN

PUTFILE('Data set name', GETFNAME, output);

addition := ' abc';

FOR i := 1 TO 10 DO BEGIN

REWRITE(output);

output := CONCAT(output, addition);

WRITELN(i);

CLOSE(output);

END;

END;

RUN(test);

TIA!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...