I have a file with records in delimited format with delimiter '^', there is a new line character in between data and causing issues while reading, any inputs in deleting new line character please?
So you have legit newline characters in your file and illegit newline characters in your file.
So the first thing to do is to find out if there is a difference between the two because, if there isn't, how do you know which one's to delete?
Can you look at the file with a hex editor to actually see the ASCII value of the rogue characters? (Perhaps even ftp the file to another system (binary transfer) to use a hex editor on it.)
If there's a difference between legit and illegit characters then it must be possible to blow the illegit's away; but we need to know that first.
With that sparse specification, limited sample extent, just guessing the record structure (8 fields) and assuming the second record to be incomplete, how about