![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Nov 2007
Posts: 1
Rep Power: 0
![]() |
text files auto imported into fields
Does anybody know of some software that can take a comma-delimmited text file and import it into a browser with blank fields?
example, a text file that has a list of someone's first name, last name, address, and phone number and put it on an existing website that has blank fields for the above information? Sorry if this isn't the right forum for this question, I know it isn't exactly a programming question |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
Re: text files auto imported into fields
You shouldn't need any software. It's a fairly simple task to do in any server-side scripting language. You can probably find snippets for it all around the Internet.
For example, in PHP... open the file with $my_string = file_get_contents("my_file.txt"), read it in line by line, then split each line into an array of fields with $fields = explode(",", $line), then display it however you feel. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| using Text fields in SWT | elford | Java | 4 | Dec 27th, 2005 12:38 PM |
| Using Text Files... | ViOLATiON | Visual Basic | 13 | Oct 27th, 2005 5:24 PM |
| Resizing fields to match text | Arla | C# | 3 | Aug 4th, 2005 1:56 PM |
| Repetitive replacing sections of text files | Novice | Other Scripting Languages | 2 | Jun 17th, 2005 9:07 AM |
| Adding Info In Text Files | Dark Flare Knight | Java | 41 | May 23rd, 2005 11:33 AM |