Hi,
can anybody please shed some light on why the split command below is retuning an error message of method not found ?
import java.io.*;
public class reader
{
public static void main(String[] args)
{
try
{
String location = new String();
location = "g:\\perl\\wipscan.txt";
FileReader wipscan = new FileReader(location);
BufferedReader buff = new BufferedReader(wipscan);
boolean eof = false;
while (!eof)
{
String[] ar_Test = line.split("\\~"
;
if (line == null)
{
eof = true;
}
else
{
String[] ar_Test = line.split("\\~"
;
}
}
//more code here
Thanks
can anybody please shed some light on why the split command below is retuning an error message of method not found ?
import java.io.*;
public class reader
{
public static void main(String[] args)
{
try
{
String location = new String();
location = "g:\\perl\\wipscan.txt";
FileReader wipscan = new FileReader(location);
BufferedReader buff = new BufferedReader(wipscan);
boolean eof = false;
while (!eof)
{
String[] ar_Test = line.split("\\~"

if (line == null)
{
eof = true;
}
else
{
String[] ar_Test = line.split("\\~"

}
}
//more code here
Thanks