Click here to Skip to main content
15,441,280 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using LINUX to develop a java application. I need to read a text file from a network, smb://servername/folder/textfile.txt. This path is readable on the Web Browser (Mozilla Firefox) but when I'm using the below code the output is false.
File f = new File("smb://servername/folder/textfile.txt");

Please help. Thanks
Updated 12-Mar-15 23:22pm
Richard MacCutchan 12-Mar-15 14:08pm    
Then your path must be wrong.
hansoctantan 12-Mar-15 14:14pm    
i can view the text file on linux web browser
Richard MacCutchan 12-Mar-15 14:31pm    
Not enough information about what your problem is. Please edit your question and add some useful detail.
hansoctantan 12-Mar-15 14:38pm    
Richard MacCutchan 13-Mar-15 5:07am    
What is the "smb:" prefix on the path for?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900