Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / April 2005

Tip: Looking for answers? Try searching our database.

grab a file from a FTP server problem.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen Russell - 12 Apr 2005 14:57 GMT
I am getting an error that a file doesn't exist.  When it errors on the box,
I go into the Explorer and I see the file????

Here is my existing code:

// Get file for new dump file

//string path = @"c:\temp\chelsea_update_full.txt";        Former file &
Path from Dev Box

string path = @\\CHD005T01\home\pdm\chelsea_update_full.txt;  // Actual
location and file does exist

using (StreamReader sr = new StreamReader(path))

{

String line;

// Read and display lines from the file until the end of

// the file is reached.

int jj=0;

while ((line = sr.ReadLine()) != null)

{

jj++;

if ( jj >3) // skip the header section.

{

parseText(RevCodeDS, line.ToString()) ;

}

}

// write out the diff's to an xml file.

OutPut.WriteXml( "multiples.xml" );

}

Any ideas?

TIA
Stephen Russell - 12 Apr 2005 16:01 GMT
> I am getting an error that a file doesn't exist.  When it errors on the box,
> I go into the Explorer and I see the file????
[quoted text clipped - 8 lines]
> string path = @\\CHD005T01\home\pdm\chelsea_update_full.txt;  // Actual
> location and file does exist

That is because the file never had an extension,  IT Directors mistake!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.