Results 1 to 3 of 3

Thread: Problhma me Java

  1. #1
    Senior Member
    Join Date
    Nov 2003
    Location
    TWRA EIMAI TOSO KLAZMENOS
    Posts
    3,981

    Default Problhma me Java

    To problhma mou einai to ekshs: Ftiaxnw mia atzenta h opoia thelw na krataei rantebou dixnontas thn wra tou rantebou, kapoia info, kai ton afksonta arithmo tou rantebou. Thelw ola ta entries na sozontai se ena arxeio sto disko, kai opote trexw to programma na fortonei afto to arxeio me ta rantebou.

    Xrisimopoiontas Sequential-Access file, to programma doulebei kanonika, alla den mporw na kanw edit th lista twn rantebou, diladi parolo pou blepw proigoumena rantebou, an paw na prosthesw ena kainourgio, tote to arxeio svinete kai periexei mono to neo rantebou.

    Xrisimopoiontas Random Access file, mporw na prosthesw rantebou kanonika (toulaxiston den mou vgazei kapoio lathos), alla otan paw na kanw view ta rantebou, mono o ayksontas arithmos fenete kanonika, sta pedia pou tha eprepe kanonika na fenete h wra tou rantebou kai to info, vlepw tetragonakia.


    Xrisimopoiw th jewl gia na kanw to GUI, kai to periballon mou einai Netbeans

    an kapoios pistebei oti mporei na voithisei tote poly efxaristws tha postarw kai ton kwdika

  2. #2
    Spider Jerusalem Deggial's Avatar
    Join Date
    Aug 2003
    Location
    The City
    Posts
    12,867

    Default Re: Problhma me Java

    Quote Originally Posted by Angrafan
    Xrisimopoiontas Sequential-Access file, to programma doulebei kanonika, alla den mporw na kanw edit th lista twn rantebou, diladi parolo pou blepw proigoumena rantebou, an paw na prosthesw ena kainourgio, tote to arxeio svinete kai periexei mono to neo rantebou.
    Κατά πάσα πιθανότητα, το λάθος σου είναι στον τρόπο που ανοίγεις το αρχείο για εγγραφή ή στον τρόπο που κάνεις νέα προσθήκη. Αν θες απλώς να προσθέσεις μια νέα εγγραφή στο τέλος του αρχείου, τότε πρέπει να ανοίξεις το αρχείο ως append (ή να μετακινήσεις τον δείκτη του αρχείου στο τέλος του). Η default συμπεριφορά όταν ανοίγουμε αρχείο για εγγραφή είναι truncate, δηλ. σβήνει τα προηγούμενα περιεχόμενα και μετά γράφει.

    http://java.sun.com/j2se/1.4.2/docs/api ... riter.html
    No trees were killed to send this message, but a large number of electrons were terribly inconvenienced.

  3. #3
    Senior Member
    Join Date
    Nov 2004
    Location
    μεσα-εξω απο τα αποδυτηρια
    Posts
    5,224

    Default Re: Problhma me Java

    Quote Originally Posted by Angrafan
    Xrisimopoiontas Random Access file, mporw na prosthesw rantebou kanonika (toulaxiston den mou vgazei kapoio lathos), alla otan paw na kanw view ta rantebou, mono o ayksontas arithmos fenete kanonika, sta pedia pou tha eprepe kanonika na fenete h wra tou rantebou kai to info, vlepw tetragonakia.
    an kapoios pistebei oti mporei na voithisei tote poly efxaristws tha postarw kai ton kwdika
    An ekanes oti eipe o co-mod kai akoma vlepeis tetragwnakia, koita sthn Time (h Date) sto documentation, exei mia function toString h kapws etsi.
    Θες να κάνεις τη ζωή σου καλύτερη; Σβήσε τα περιττά σου mp3 (και προιόντα συναφών απωλεστικών ή μη αλγορίθμων).

Similar Threads

  1. Problhma
    By The_Painless in forum PC & Games
    Replies: 57
    Last Post: 02-02-2018, 03:45
  2. Problhma me ton Nortona
    By sabbattack in forum PC & Games
    Replies: 3
    Last Post: 09-10-2006, 22:34
  3. Java profs check this.
    By One Colour Black in forum PC & Games
    Replies: 1
    Last Post: 14-06-2006, 16:32
  4. Java
    By ConJoined Thighs in forum PC & Games
    Replies: 6
    Last Post: 31-03-2005, 18:59
  5. Java Console
    By Dragonlord in forum PC & Games
    Replies: 2
    Last Post: 24-03-2004, 13:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •