Posted By: Anonymous
txt_load/file_str_read - lines with #[number] - 05/04/08 18:08
(A7 7.07.6 / lite-c [maybe c-script])
txt_load and file_str_read can't read lines starting with a '#' followed by a number (the read line is empty).
The script:
with simple.txt like this:
reads this:
1. line
3. line
5. line
##6. line
7. line
9. line
0. line
txt_load and file_str_read can't read lines starting with a '#' followed by a number (the read line is empty).
The script:
Code:
TEXT* txt_text = { strings=10; flags=VISIBLE; } void main(){ video_set(800,600,32,2); level_load(NULL); txt_load(txt_text, "simple.txt"); }
with simple.txt like this:
Code:
1. line #2. line 3. line #4. line 5. line ##6. line 7. line #8. line 9. line 0. line
reads this:
1. line
3. line
5. line
##6. line
7. line
9. line
0. line