![]() |
| | #1 |
| Registered User Join Date: Feb 2006
Posts: 44
| I'm reading a file from a network drive but I'm having a problem in this line. Code: StreamReader fileRead = new StreamReader("\\E-Storage\\Billing\\text.txt")
My question is how should I write the path then Code: ("\\E-Storage\\Billing\\text.txt") or
(@"\E-Storage\Billing\text.txt")
Thank you |
| Dilmerv is offline | |
| | #2 |
| Registered User Join Date: May 2006
Posts: 894
| I'm far from being sure about this, but I think you might try it though: "%root%\\E-Storage\\Billing\\text.txt" I think I've seen this somewhere = / |
| Desolation is offline | |
| | #3 |
| Anti-Poster Join Date: Feb 2002
Posts: 1,241
| This worked for me: Code: (@"\\Bdonaldsondev\documentation\bgd3.txt") or
("\\\\Bdonaldsondev\\documentation\\bgd3.txt")
__________________ Rule #1: Every rule has exceptions |
| pianorain is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shortest Path Maze Solver (Breadth Search Help) | Raskalnikov | C Programming | 5 | 04-07-2009 07:41 PM |
| Can't figure out what keeps hanging up my program | shays | C Programming | 7 | 11-12-2007 02:59 PM |
| A very long list of questions... maybe to long... | Ravens'sWrath | C Programming | 16 | 05-16-2007 05:36 AM |
| Path Choice Questions | Dae | Game Programming | 8 | 07-02-2005 05:34 AM |
| linked list recursive function spaghetti | ... | C++ Programming | 4 | 09-02-2003 02:53 PM |