How to Read a Pipe separated file

Hi Friends I have a problem while reading the pipe separated file.

I want to read pipe separated data in the file. Is any function is available to read the data by providing deliminator as |. I have used CreateFile windows function to open the file.

How the fscanf function will help to get this.
Thanks
Last edited on
Last edited on
Solution for reading pipe separated file.

FILE *fp = _tfopen(L"c:\\a.pp",L"r");

wchar_t pp[1024];

while(!feof(fp))

{

_ftscanf(fp,L"%[^|]|",pp);

}
Topic archived. No new replies allowed.