Hi,

I have tested the following program under Windows XP Home

procedure main()

   fname := "a\\data.txt"
   fin := open(fname) | stop("can't open ", fname)
   s:=reads(fin, 20)
   write(s)
   read()

end

 I tested the program with  "a\\data.txt"  ,   "a/data.txt"  and even
"a//data.txt"

all of them worked just fine and I got the expected result.

I assume that "\\" and "/"  are interchangeable and work correctly under
Windows.

Thanks,
Jafar.




On Jan 17, 2008 1:25 AM, Jonathan Kaye <[EMAIL PROTECTED]> wrote:

> Hi all,
> Can I just confirm that I don't need to change "/"s to "\\" for Windows
> users when using pathnames in the source code. For example, if I have a
> line
>        datadir := "Data/"
> will this compile as is for Windows? or do I need to create a verion
> like this
>    datadir := "Data\\"?
> My impression is that I don't need to do this but I want to make sure
> and I don't have easy access to a Windows box.
> Thanks,
> Jonathan
>
> --
> Jonathan Kaye
> Sip Phone: [EMAIL PROTECTED]
> Registered Linux user #445917 at http://counter.li.org/
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Unicon-group mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/unicon-group
>



-- 
"Injustice anywhere is a threat to justice everywhere"    Dr. King
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group

Reply via email to