User Profile

Collapse

Profile Sidebar

Collapse
natie
natie
Last Activity: Nov 10 '11, 10:04 PM
Joined: Oct 17 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • natie
    started a topic error: "unreachable statement in File.close();"
    in Java

    error: "unreachable statement in File.close();"

    I have the following code which is a method that displays the content of a file with the name "File"

    Code:
     public void DisplayAll()throws IOException
    
        {
           		try
    			{DataInputStream F = new DataInputStream(new FileInputStream("File"));
    			{
        			for(;;)
        			{
        			System.out.println(F.readUTF());
        			System.out.println(F.readInt());
    ...
    See more | Go to post

  • natie
    replied to error in seek() class
    in Java
    if for example I have a a class which concludes a method in which I write something in a file, and another which searches for something specific in the same file, and the main class uses both of them. In the second method,do I have to use the seek method?
    hmm it's getting weird! :|
    See more | Go to post

    Leave a comment:


  • natie
    replied to error in seek() class
    in Java
    oh thanks.. I understood it now I think better..
    and can I ask smthng more? in RandomAccess Files, do we have to use always seek method?

    and somthng more: for instance, the F.seek(0); /*if F is our file*/ goes us to the top of our file.. do we have to declare above our class something or not?
    See more | Go to post

    Leave a comment:


  • natie
    started a topic error in seek() class
    in Java

    error in seek() class

    I'm new in java and while I was working on a project which had DataInputStream s etc, my compiler show me this error:

    symbol : method seek(int)
    location: class java.io.DataInp utStream
    F.seek(0);

    I read in a forum that seek() is only for long types..
    Is it correct?

    what i'm going to do now?

    thanks
    See more | Go to post

  • natie
    started a topic about saving the input from the keyboard as a .txt file
    in C

    about saving the input from the keyboard as a .txt file

    Hi. could anybody help me about how can I save the input from the keyboard as a .txt file?? I've recently started using C++ and I'm a little bit confused... Thanks
    See more | Go to post
No activity results to display
Show More
Working...