Kumarn

Problem to read .DOC FILE using ReadLine command in PeopleCode

Hi Pros,

 

I'm trying to read line by line from different kind of files. I was able to read from all kind of files(like PDF, TXT, RTF) except the ".DOC" files. I'm getting the below error while processing the .DOC file.

 

Read Line from file Error: Error reading from file C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\New_Test.doc: No error. (2,629)

 

According to me I thought that the problem is with the processing of .DOC file. Is there any exceptions or not possible with ReadLine Command? Or is there any other way to accomplish this?

Did any one previously worked on the same kind of requirement.

Any help from our pros would be greatly appreciated.

 

Here is my pseudo code.

*************

Pseudo code:

*************


 &F = GetFile(&File_Path_Loc | &TempName, "R", %ilePath_Absolute);
            While &F.ReadLine(&Res_Line) 
               &Find_In = &Res_Line;
               rem MessageBox(0, "", 0, 0, "&Find_In " | &Res_Line);
               If &Found = "N" Then

                  .........................................;

                  .........................................;
               End-If;
            End-While;

 

 

Views: 22

Reply to This

© 2012   Created by PSoftPros.

Badges  |  Report an Issue  |  Terms of Service