1. Re: File names

>    Well, I am still trying to write my first EUPHORIA  program.  I am
>making progress but have another question.
>
>   I define a file name using the constant statement and when I include
>the total path as follows:
>      constant
>       FILE =  "C:\PATH\FILE.TXT"
>
>  It doesn't like the slashes
>
>  If I move the file to the current directory it works fine as I don't
>have the slashes in the FILE name.
>
>   How do I solve this problem.    I really appreciate the help you have
>given me.
>
>    EUPHORIA is quite different in many ways versus QB or FORTRAN and I
>am having to slowly work my way through the statements.
>
>Thanks,
>
>Jim Roberts


To use the slashes as in a directory path, you must specify a pair of
slashes for every slash that exists in the path. This is because \ is
considered the first of two characters to represent a special character,
like \t or \n

For example, to open a path to a fictional bitmap called dog.bmp in the
C:\windows directory, you must use:

c:\\windows\\dog.bmp

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu