What have you tried so far? Why didn't it work? Remember that this is not a code request service.
I have a question as to your data file format. For the user named "ram", there's no colon between "age" and "45". Is that on purpose, or just a typo?
Here's a little something in pseudo code though, that should get you started.
print table headers; open file; read from file unless a blank line is found; # skip over the code lin +es while we can still read from the file { read the next line; if it's a "Name(:)", "age(:)", or "phone(:)" line, store the piece + of data in memory if it's a blank line { print the table row; clear the stored pieces of data from memory; } } close the file; print table footers;
In reply to Re: Read block of file and print to html table
by muba
in thread Read block of file and print to html table
by rockstar99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |