Gambas Documentation
Aperçu du Langage
À traduire
Code Snippets
Comment faire ...
Compilation et installation
Composants
gb
.Array.Bounds
.Stat.Perm
.Stream.Lines
.Symbol
Application
Args
Array
Boolean[]
Byte[]
Class
Classes
Collection
Component
Components
Date[]
Enum
Env
Error
File
Float[]
gb
Integer[]
Long[]
Object
Object[]
Observer
Param
Pointer[]
Process
Short[]
Single[]
Stat
Stream
Begin
Blocking
ByteOrder
Close
Drop
EndOfFile
EndOfLine
Handle
Lines
ReadLine
Send
Tag
String
String[]
System
Timer
User
Variant[]
gb.args
gb.cairo
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.db
gb.db.form
gb.dbus
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.mdi
gb.gmp
gb.gsl
gb.gtk
gb.gtk3
gb.gui
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.libxml
gb.media
gb.mysql
gb.net
gb.net.curl
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.option
gb.pcre
gb.pdf
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt5
gb.qt5.opengl
gb.report
gb.scanner
gb.sdl
gb.sdl.sound
gb.settings
gb.signal
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Derniers changements
Dépôt d'applications
Documentation de l'Environnement de développement
Documentation des développeurs
Documents
Indenter
Index de tous les Documents
Index du langage
Lexique
LISEZ-MOI
Manuel du wiki
Messages d'erreur
Tutoriels
Wiki License

Stream.Lines (gb)

Property Read Lines As .Stream.Lines

Retourne un objet virtuel qui permet d'énumérer un flux ligne par ligne.

Exemple

Dim hFile As File
Dim sLine As String

hFile = Open "/var/log/syslog"
For Each sLine In hFile.Lines
  If Instr(sLine, "[drm]") Then Print sLine
Next

Aug 6 04:44:44 Inspiron-530 kernel: [ 1.895315] [drm] nouveau 0000:01:00.0: Detected an NV50 generation card (0x086300a2) Aug 6 04:44:44 Inspiron-530 kernel: [ 1.901186] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PRAMIN Aug 6 04:44:44 Inspiron-530 kernel: [ 1.948417] [drm] nouveau 0000:01:00.0: ... appears to be valid Aug 6 04:44:44 Inspiron-530 kernel: [ 1.948420] [drm] nouveau 0000:01:00.0: BIT BIOS found Aug 6 04:44:44 Inspiron-530 kernel: [ 1.948423] [drm] nouveau 0000:01:00.0: Bios version 60.86.45.00 Aug 6 04:44:44 Inspiron-530 kernel: [ 1.948426] [drm] nouveau 0000:01:00.0: TMDS table version 2.0 ...

Voir aussi