Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FileReader

Empfohlene Antworten

Veröffentlicht

Habe folgenden Code und will das eine Klasse FileReader geöffnet wird!!

Aber wie?? Wer kann mir helfen??

import java.io.*;

public class FileViewer {

public void handle (File myFile){

// öffnen eines FileReader :eek:

}

main {

x = new FileViewer

x.handle(new File (argv[0]));

}

}

hallo,

mir ist zwar noch nicht ganz klar was du mit dem FileReader

anstellen willst aber hier ist mal ein kleines Codebeispiel

(syntaxfehler sind möglich da ich das hier nicht in einem J editor schreibe :o) )

public class FileViewer

{

public void handle(java.io.File file)

{

java.io.FileReader fileReader = new java.io.FileReader(file);

// nun steht dir das objekt zur verfügung.... was auch immer du damit anstellen willst :o)

}

public void main(String[] args)

{

FileViewer fileViewer = new FileViewer();

fileViewer.handle(new File (args[0]));

}

}

Danke hab es lösen können

:snief

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.