Closed Thread Icon

Topic awaiting preservation: All about read/write from files (.txt) (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12287" title="Pages that link to Topic awaiting preservation: All about read/write from files (.txt) (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: All about read/write from files (.txt) <span class="small">(Page 1 of 1)</span>\

 
Xdreamer.ch
Maniac (V) Inmate

From: Switzerland
Insane since: Mar 2001

posted posted 06-26-2002 09:04

do do guy's know any good ressource for my
subject?
I can read write but I want to know which
commands are familiar with read/write from
files...
I need something to format the output. I know
a little bit about explode....any tries?

language: php

cu
~Xdreamer.ch~

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-26-2002 09:14

You need to be more specific - How do you want to format the output and how data is stored in text file...


Xdreamer.ch
Maniac (V) Inmate

From: Switzerland
Insane since: Mar 2001

posted posted 06-26-2002 09:28

hi max

thx for your reply. I need it for my newsscript. My boss
wants to write something in a txt and on the page is
the output of this file...

example
********

code:
***********************************
26.06.2002
----------
Testing Script, locally *fg*

***********************************

##



Thats an entry in the textfile...The output
can came the same as above....the only
thing I havn't got the whole widht for
the newstext....

The two ## are markers for the script
that thats the end of one entry...

cu
~Xdreamer.ch~

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 06-27-2002 08:37

You should read file line by line, using fgets() function and look for lines that begin with the separator '##'. Everything between separators, you should add to an array, for example, or print directly (depeding whether you want to do some fancy formatting later or not)


« BackwardsOnwards »

Show Forum Drop Down Menu