Cannot make sense out a Delphi windows file name
Posted
by Philippe Watel
on Stack Overflow
See other posts from Stack Overflow
or by Philippe Watel
Published on 2010-05-13T15:38:19Z
Indexed on
2010/05/13
15:54 UTC
Read the original article
Hit count: 173
delphi
I am trying to copy from a file X to this name
C:\RIP2\France Clidat\Les Plus Belles Oeuvres - France Clidat\(01)3_ Un Sospiro.flac
I have checked that there is no bad characters, If I force directorires it creates
C:\RIP2\France Clidat\Les Plus Belles Oeuvres - France Clidat
but it refuses to write the file and I do not understand why a simple test
procedure foo(str: string);
var
f:File;
begin
Assign(f,str);
Rewrite(f);
CloseFile(f);
end;
will crash saying it is not a valid file name but it is!
If I remove ALL blank spaces it works
I am lost please Help
© Stack Overflow or respective owner