| Write string to file.; Tiny Tutorial | |
|---|---|
| Tweet Topic Started: Mar 5 2009, 05:30 AM (424 Views) | |
| GhettoFish | Mar 5 2009, 05:30 AM Post #1 |
|
Awesomeness FTW!
|
Hey just thought i should add some content to the forums. So here is a tiny tutorial on how to handle strings and how to write to file.
By adding data like this to a string it is easy to handle it when we write it to our file. We can do this either by using the fopen() or file_put_content($filename, $string) we will use fopen.s
So there we go, with this short little nit bit of code we have a nice text-file with inputted data. Hurrah!
|
|
I'm not young enough to know everything. - J.M. Barrie http://www.cixz.org/ | |
![]() |
|
| Samael88 | Mar 5 2009, 11:18 AM Post #2 |
|
Not that I know much about web-based programming, but would it not be nice if you wrote what language you used in the tutorial? It would sure help us who does not have a clue
|
![]() |
|
| PauloMillerz | Mar 5 2009, 01:37 PM Post #3 |
![]()
|
hehehe Edited by PauloMillerz, Mar 5 2009, 01:38 PM.
|
If you like... RATE IT!! Add to my reputation to the left?
| |
![]() |
|
| Samael88 | Mar 5 2009, 04:30 PM Post #4 |
|
I just have to answer that. People say that it is the sight that goes first
|
![]() |
|
| Darksorrow131 | Mar 5 2009, 11:46 PM Post #5 |
|
Did you miss 's' in the function name? iirc it's file_put_contents() |
|
(let loop () (loop)) ((lambda (x) (x x)) (lambda (x) (x x))) (let ((k #f)) (call/cc (lambda (cc) (set! k cc)) (k)) ((call/cc call/cc) (call/cc call/cc)) -- Infinite loops are awesome! -- Tell me if you have other awesome infinite loops! | |
![]() |
|
| GhettoFish | Mar 6 2009, 04:05 AM Post #6 |
|
Awesomeness FTW!
|
aah ok, well i have never used that function efore so i chose not to write about it ![]() So spelling mistakes are expected
|
|
I'm not young enough to know everything. - J.M. Barrie http://www.cixz.org/ | |
![]() |
|
| Darksorrow131 | Mar 6 2009, 09:27 PM Post #7 |
|
lol I like file_put_contents() though, pretty convenient function imo. Maybe it's just me being liking "with-output-to-file" in scheme too much
Edited by Darksorrow131, Mar 6 2009, 09:28 PM.
|
|
(let loop () (loop)) ((lambda (x) (x x)) (lambda (x) (x x))) (let ((k #f)) (call/cc (lambda (cc) (set! k cc)) (k)) ((call/cc call/cc) (call/cc call/cc)) -- Infinite loops are awesome! -- Tell me if you have other awesome infinite loops! | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Web-Based Programming Support · Next Topic » |







10:18 AM Jul 11