Sephiroth http://sephiroth.scifi-action.de/board/ |
|
$readmem and /filetomem http://sephiroth.scifi-action.de/board/viewtopic.php?f=4&t=103 |
Seite 1 von 1 |
Autor: | Sephiroth [ 8. April 2009 23:46 ] |
Betreff des Beitrags: | $readmem and /filetomem |
Something similar to $read it will just allow faster reading and/or just memory usage without opening the file over and over again for reading a single line. Example: /filetomem versions.txt -> $readmem(versions.txt,1) Would do the same as $read(versions.txt,n,1) Example2: $readmem(versions.txt,1) $readmem(versions.txt,2) $readmem(versions.txt,3) This won't open/close the file over and over again like "$read(versions.txt,n,1) $read(versions.txt,n,2) $read(versions.txt,n,3)" would do. Well uhm you could also use $fread etc. to this but it would also parse the file over and over again. This snippet is just here to avoid double reading from a file. Code: Alles auswählen alias readmem { |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |