Guest
Hi guys,
I want to create a list( which i want to pass it to the ?choices of hiCreateReportField form) while reading the list from a file line by line
Say the file contents are like this (I took only two lists; it can be more too)
("1" "OSC_ALL" "Misc" "M2" "No" "(11508.2" "414.511)" "Low" "asad-Aug/24/2012")
("2" "OSC_ALL" "Misc" "M1" "No" "(11461.12" "423.483)" "Low" "asad-Aug/24/2012")
I want to add all of them to a new list & pass it to hiCreateReportField like
?choices list(("1" "OSC_ALL" "Misc" "M2" "No" "(11508.2" "414.511)" "Low" "asad-Aug/24/2012")
("2" "OSC_ALL" "Misc" "M1" "No" "(11461.12" "423.483)" "Low" "asad-Aug/24/2012"))
I tried doing lineread or gets to access contents from the file one by one but it adds extra backslash character after reading.
like
"(\"1\" \"OSC_ALL\" \"Misc\" \"M2\" \"No\" \"(11508.2\" \"414.511)\" \"Low\" \"asad-Aug/24/2012\") \n"
Please tell me how can I do this.
I want to create a list( which i want to pass it to the ?choices of hiCreateReportField form) while reading the list from a file line by line
Say the file contents are like this (I took only two lists; it can be more too)
("1" "OSC_ALL" "Misc" "M2" "No" "(11508.2" "414.511)" "Low" "asad-Aug/24/2012")
("2" "OSC_ALL" "Misc" "M1" "No" "(11461.12" "423.483)" "Low" "asad-Aug/24/2012")
I want to add all of them to a new list & pass it to hiCreateReportField like
?choices list(("1" "OSC_ALL" "Misc" "M2" "No" "(11508.2" "414.511)" "Low" "asad-Aug/24/2012")
("2" "OSC_ALL" "Misc" "M1" "No" "(11461.12" "423.483)" "Low" "asad-Aug/24/2012"))
I tried doing lineread or gets to access contents from the file one by one but it adds extra backslash character after reading.
like
"(\"1\" \"OSC_ALL\" \"Misc\" \"M2\" \"No\" \"(11508.2\" \"414.511)\" \"Low\" \"asad-Aug/24/2012\") \n"
Please tell me how can I do this.