still not solve reading a file problem

members here i s a bug which is not yet solved as per my littele knowledge it doesnot read the documents content and prints it on command line any input from is most apprciated

her is code

"

import java.io.*;

class read

{

public static void main(String args[]) throws IOException

{

String line;

String[] full=new String[10];

int count=0;

FileInputStream fis=new FileInputStream("sampledocument.doc");

DataInputStream input= new DataInputStream("fis");

while((line= input.readLine())!=null)

{

System.out.println("line");

count++;

full[count]=line;

}

}

}

error given is

javac read.java

read.java:11: cannot find symbol

symbol :construtor DataInputStream(java.lang.String)

location:class java.io.DataInputStream

DataInputStream input = new DataInputStream("fis");

Note :read.java uses or overrides a deprecated API.

Note :Recompile with -Xlint:deprecation for details.

1 error.

[1063 byte] By [javamaster2005a] at [2007-10-2 0:51:48]
# 1
write fis, not "fis"
jsalonena at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 2
> FileInputStream fis=new FileInputStream("sampledocument.doc");> DataInputStream input= new DataInputStream("fis");You're very resistant to learning, aren't you? Remove the quotes, *******.
CeciNEstPasUnProgrammeura at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 3
And start using the[code][/code] tags.
PhHeina at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 4
Crosspost.The OP was told this in his previous thread http://forum.java.sun.com/thread.jspa?threadID=666986&messageID=3902969#3902969 but apparently chose to ignore it.
InigoMontoyaa at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 5
Is anyone else reminded of Gary Larson's "Midvale School for the Gifted" cartoon?
DrLaszloJamfa at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 6
> Is anyone else reminded of Gary Larson's "Midvale> School for the Gifted" cartoon?LOL!
PhHeina at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 7
what are [code]/[code ] tags plz explain as out comes as line line line each seperately on different line something prob still
javamaster2005a at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 8
[url= http://forum.java.sun.com/help.jspa?sec=formatting]Do you manage to click this line?[/url]
PhHeina at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 9

Code tags look like this

[code]import javax.swing.*;

public class MyClass {

...

}

[/code]

You can type them in or generate them by pressing the button labeled

"code" above the message text area, when you are composing a reply.

DrLaszloJamfa at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 10

but still by removing quotes i am not getting out put here is modified code

import java.io.*;

class read

{

public static void main(String args[]) throws IOException

{

String line;

String[] full=new String[10];

int count=0;

FileInputStream fis=new FileInputStream("sampledocument.txt");

DataInputStream input= new DataInputStream(fis);

while((line= input.readLine())!=null)

{

System.out.println("line");

count++;

full[count]=line;

}

}

}

it creates out put on single line as "line " where as in original text i have written i mean to say in text file

when going gets tough ,ough gets going.

javamaster2005a at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 11
> System.out.println("line");REMOVE THE QUOTES YOU FREAK!
CeciNEstPasUnProgrammeura at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 12
This is un-be-*******-lievable.
CeciNEstPasUnProgrammeura at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 13
If you tell your program to write nothing but "line" to the console, why are you surprised that it writes nothing but "line" to the console?
CeciNEstPasUnProgrammeura at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 14

sorry buddy being a begginer i may commit mistake plz try to rectify me

i regret plz , am sorry plz , hey got it its now running very smothly and nicely

when going gets tough , tough gets going

enjoy learning java

cheers,

java master 2005

javamaster2005a at 2007-7-15 18:11:20 > top of Java-index,Java Essentials,Java Programming...
# 15
> Is anyone else reminded of Gary Larson's "Midvale> School for the Gifted" cartoon?Classic!
jbisha at 2007-7-20 14:35:25 > top of Java-index,Java Essentials,Java Programming...
# 16
> sorry buddy being a begginer i may commit mistake plz> try to rectify meI did. We did. Three times now. *sigh* If you want to refer the value of a variable attribute, use just the name. If you want to create a String, put some text in quotes.
CeciNEstPasUnProgrammeura at 2007-7-20 14:35:26 > top of Java-index,Java Essentials,Java Programming...