Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

Wanja

Junior Schreiberling

  • "Wanja" started this thread

Posts: 150

Date of registration: Feb 4th 2003

1

Sunday, July 4th 2004, 12:34pm

java Ü 10

Wenn ich versuche die B.prob einzulesen, krieg ich immer ne exception,
mit ner selbsterstellten B.txt funz alles tadelos
hat vielleicht wer nen tip für mich diesbezüglich ?

mfG Wanja

kakTuZ

größtenteils harmlos

  • "kakTuZ" is male

Posts: 309

Date of registration: Oct 14th 2003

Location: Hannover

Occupation: Software Developer

2

Sunday, July 4th 2004, 2:28pm

was ist das denn für ne exception?
Und wie versuchst du die Datei einzulesen?

hast du dich eventuell nur verschreiben? Die datei heißt b.prop nicht b.prob.
Ich hab die Datei mittels der Properties Klasse (java.util) wie im Beispeil aus dem Skript (9. Vorlesung) eingelesen.

gruss
Maxi
#! /bin/bash
yes 'arch is still the best'

Sinan

Senior Schreiberling

  • "Sinan" is male

Posts: 1,021

Date of registration: Jul 5th 2003

Location: Malaga

Occupation: Senior Cloud Solution Engineer bei Oracle

3

Sunday, July 4th 2004, 6:38pm

Ja genau, einfach das Beispiel aus dem Skript kopieren (Teil 9, Seite 26 & 27)
und statt "Prob.conf" einfach B.prop schreiben.
Ache auch darauf, dass B.prop und die .java-Datei sich im selben Verzeichnis befinden!
With great power comes great responsibility

This post has been edited 1 times, last edit by "Sinan" (Jul 4th 2004, 6:38pm)


Wanja

Junior Schreiberling

  • "Wanja" started this thread

Posts: 150

Date of registration: Feb 4th 2003

4

Sunday, July 4th 2004, 8:36pm

LOL

Ihr habt recht! Ich hab statt "prop" doch glatt "prob" geschrieben... genau wie im Forum. ^^

wie ich sowas hasse argh ^^