Charmed Quark Systems, Ltd. - Support Forums and Community
FileInStream - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9)
+--- Thread: FileInStream (/showthread.php?tid=10948)



FileInStream - zra - 11-01-2019

Hi Dean, 

Can you take a look at this code and tell me if anything looks amiss? The file to be parsed is located here C:\Program Files (x86)\CQC 

The macro is failing on this line CimisFile.Open("\\daily204.csv"); . It used to work a few years back, but something is going wrong now. 

Thanks. 
Code:
Method Start() Returns Int4
    Begin
        Locals=
            FileInStream CimisFile;
            Card4 IndexErr;
            String TarLine;
            String CurLine;
            StringTokenizer STok;
            SimpleFldClient FClient;
            Float8 EtoFlt;
            String EtoStr;     
        EndLocals;
       
        //Open CimisFile
        CimisFile.Open("\\daily204.csv");



RE: FileInStream - zra - 11-01-2019

I figured it out, Dean.

C:\programfiles\cqcdata etc.

I was putting the file in the wrong spot.