Click here to Skip to main content
15,897,891 members
Home / Discussions / Java
   

Java

 
AnswerRe: please help me Pin
Richard MacCutchan25-Apr-11 5:04
mveRichard MacCutchan25-Apr-11 5:04 
GeneralRe: please help me Pin
scottgp25-Apr-11 8:31
professionalscottgp25-Apr-11 8:31 
GeneralRe: please help me Pin
Richard MacCutchan25-Apr-11 21:43
mveRichard MacCutchan25-Apr-11 21:43 
AnswerRe: please help me Pin
TorstenH.25-Apr-11 12:01
TorstenH.25-Apr-11 12:01 
QuestionWhat is the problem accessing "C" drive using a code (using import.io.*; )? Pin
CoderForEver23-Apr-11 20:36
CoderForEver23-Apr-11 20:36 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
jschell25-Apr-11 8:21
jschell25-Apr-11 8:21 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
CoderForEver25-Apr-11 12:07
CoderForEver25-Apr-11 12:07 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
TorstenH.25-Apr-11 19:33
TorstenH.25-Apr-11 19:33 
...you know, you need to mask the double-slash ? it's not interpreted right otherwise. the Backslash is in Java a sign for masking and special String-values like the tab "\t". To set a "\" you always need to use 2 "\\".

It's a good solution to set up a String and use this as a argument for the following commands:
FileSearchRecursive x=new FileSearchRecursive();
String strSearchFolder = "C:\\\\someFolder"; // add extra slashes to make it a double slash
String strSearchFile = "try.txt"´;
System.out.println("Searching in folder:\t" + strSearchFolder + " for file:\t" + strSearchFile);
if(false == (x.searchForFile(strSearchFolder,strSearchFile ))){
	System.out.println("File not found");
}


regards
Torsten
I never finish anyth...

GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
jschell26-Apr-11 8:00
jschell26-Apr-11 8:00 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
jschell26-Apr-11 7:57
jschell26-Apr-11 7:57 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan25-Apr-11 22:16
mveRichard MacCutchan25-Apr-11 22:16 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Nagy Vilmos27-Apr-11 5:43
professionalNagy Vilmos27-Apr-11 5:43 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan27-Apr-11 6:53
mveRichard MacCutchan27-Apr-11 6:53 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
David Skelly28-Apr-11 1:48
David Skelly28-Apr-11 1:48 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan28-Apr-11 5:54
mveRichard MacCutchan28-Apr-11 5:54 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
CoderForEver26-Apr-11 3:26
CoderForEver26-Apr-11 3:26 
GeneralRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan26-Apr-11 10:15
mveRichard MacCutchan26-Apr-11 10:15 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Luc Pattyn26-Apr-11 4:05
sitebuilderLuc Pattyn26-Apr-11 4:05 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
jschell26-Apr-11 8:03
jschell26-Apr-11 8:03 
AnswerRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
David Skelly26-Apr-11 22:16
David Skelly26-Apr-11 22:16 
RantRe: What is the problem accessing "C" drive using a code (using import.io.*; )? Pin
Richard MacCutchan26-Apr-11 22:28
mveRichard MacCutchan26-Apr-11 22:28 
QuestionIf string is a immutable class then how come it is allowing us to make changes ? Pin
shiva.kore23-Apr-11 7:11
shiva.kore23-Apr-11 7:11 
AnswerRe: If string is a immutable class then how come it is allowing us to make changes ? Pin
Luc Pattyn23-Apr-11 7:25
sitebuilderLuc Pattyn23-Apr-11 7:25 
GeneralRe: If string is a immutable class then how come it is allowing us to make changes ? Pin
shiva.kore23-Apr-11 7:45
shiva.kore23-Apr-11 7:45 
GeneralRe: If string is a immutable class then how come it is allowing us to make changes ? Pin
CoderForEver23-Apr-11 20:40
CoderForEver23-Apr-11 20:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.