Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query text file with paragraph entries

Status
Not open for further replies.

dinoviapangea

Technical User
Apr 9, 2002
41
US
I have the following pipe delimited text file called temp.txt ,


name|date|comment
"John Doe"|"22-Apr-08 10:21"|"This is a text file entry.

This is a new paragraph in the comment field."


I'm trying to query it with the following query,

<cfhttp method="Get"
url="file_path/temp.txt"
name="Get_Data"
columns="name,date,comment"
textqualifier=""""
delimiter="|">

I keep getting incorrect number of columns in row. I believe it thinks the new paragraph is a new entry, but I thought the textqualifier would resolve this. Any help would be appreciated.

Thanks,
Dino
 
Didn't work. I still get the same error. I thought for sure TEXTQUALIFIER="""" would work. Any other suggestions.

Thanks,
Dino
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top