May 25, 2001 #1 hedgracer Programmer Mar 21, 2001 186 US I have the following path and filename in an ifstream line: "d:\capl files\capl.dat" This is not working. I also put \\ instead of \ and that did not work. Any suggestions? Thanks in advance. Dave Christman
I have the following path and filename in an ifstream line: "d:\capl files\capl.dat" This is not working. I also put \\ instead of \ and that did not work. Any suggestions? Thanks in advance. Dave Christman
May 25, 2001 #2 Cagliostro Programmer Sep 13, 2000 4,226 GB why didn't work? what did you get strange? John Fill ivfmd@mail.md Upvote 0 Downvote
May 25, 2001 #3 Zyrenthian Programmer Mar 30, 2001 1,440 US Hi, I think the problem is not only the "\" but also the space try this "d:\\capl\ files\\capl.dat" Matt Upvote 0 Downvote
Hi, I think the problem is not only the "\" but also the space try this "d:\\capl\ files\\capl.dat" Matt
May 25, 2001 #4 abp Programmer Sep 14, 2000 134 FR Looks like problem with the space between capl and files. abp Upvote 0 Downvote
May 25, 2001 Thread starter #5 hedgracer Programmer Mar 21, 2001 186 US What happens is the file is not read and outputted to another file. This works when I use the following: "d:\\capl1.dat"; The subdirectory (capl files) seems to be the problem. Dave Christman Upvote 0 Downvote
What happens is the file is not read and outputted to another file. This works when I use the following: "d:\\capl1.dat"; The subdirectory (capl files) seems to be the problem. Dave Christman
May 25, 2001 #6 Zyrenthian Programmer Mar 30, 2001 1,440 US Right, it IS the directory. File paths with spaces need the space "escaped" with the "\" When using "capl files" you need to type it in as "capl\ files" so the space is recognized. Matt Upvote 0 Downvote
Right, it IS the directory. File paths with spaces need the space "escaped" with the "\" When using "capl files" you need to type it in as "capl\ files" so the space is recognized. Matt
May 25, 2001 #7 Cagliostro Programmer Sep 13, 2000 4,226 GB I never had problems with spaces on file names. John Fill ivfmd@mail.md Upvote 0 Downvote