• Post Reply Bookmark Topic Watch Topic
  • New Topic

FileNotFoundException

 
Sophie Jo
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm running a tcp/ip client-server chat with file transfer.
I am trying to pass the file name to the clientFtp. The file name is passed. The file is never created.

The contents of the file are displayed in the chat area as normal text.

If possible, would you know why i keep getting this error? There is a folder 'got'.

Any help would be appreciated.

Error:


Server snippet:


client program:




ClientFtp code:


[ May 23, 2004: Message edited by: Sophie Jo ]
 
Vicken Karaoghlanian
Ranch Hand
Posts: 522
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try passing "C:\\got\\b.txt"
 
Sophie Jo
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
It now works.
It's odd, because my other files are created ok with a lowercase c.


Thanks again.
 
Vicken Karaoghlanian
Ranch Hand
Posts: 522
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sophie Jo:
Thanks!
It now works.
It's odd, because my other files are created ok with a lowercase c.


Thanks again.


Uppercasing 'c' has nothing to do with it, you should always use double backslashes '\\' when representing paths.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!