Posted: Thu Jan 27, 2005 7:50 pm Post subject: Putting file in Queue..urgent
Newbie
Joined: 19 Jan 2005 Posts: 7
Hi,
I want to read a text file (SWIFT) and want to insert in a Queue.
for that I wrote
MQMessage msg=new MQMessage();
msg.format = MQC.MQFMT_STRING;
BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));
String line = "";
while((line = br.readLine()) != null)
{
msg.writeString(line);
}
but then the data in queue will apear in single line.
How can we insert <CR><LF> after end of each segment.
can we write something line msg.writeString('\n')
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum