× Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...

writing to a folder in WINDOWS

  • fresho01
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 11 months ago #981 by fresho01
writing to a folder in WINDOWS was created by fresho01
Hi does anyone know how to write a CSV data into file or directory or folder in WINDOWS?
I used WRITESEQ REC.LIST TO FN.ACCT.TXT ELSE NULL . But it is not writing.
Ideas will be highly apreciated.
Cheers
lekan (Nigeria)

Please Log in or Create an account to join the conversation.

More
16 years 11 months ago #982 by malai
Replied by malai on topic Sample program
0001 PROGRAM TEST.SAMPLE
0002
0003 YOUR.FOLDER = 'C:MYFOLDER'
0004 YOUR.FILE = 'MYCSVFILE.CSV'
0005
0006 OPENSEQ YOUR.FOLDER,YOUR.FILE TO F.FILE.POINTER ELSE
0007 CREATE F.FILE.POINTER ELSE
0008 PRINT 'UNABLE TO CREATE FILE'
0009 STOP
0010 END
0011 END
0012
0013 YOUR.DATA = 'DATA1,DATA2,DATA3,DATA4'
0014 WRITESEQ YOUR.DATA TO F.FILE.POINTER ELSE
0015 PRINT 'UNABLE TO WRITE DATA'
0016 STOP
0017 END
0018
0019 STOP


___________

Thanks

Please Log in or Create an account to join the conversation.

  • fresho01
  • Topic Author
  • Offline
  • New Member
  • New Member
More
16 years 11 months ago #983 by fresho01
Replied by fresho01 on topic windows
hi malaiselvan,
am very grateful ... ur program sample worked well..... My mistake was the file type i created ..... i used CREATE.FILE ACCT.TXT TYPE=UD..... the program thus couldnt write into it

This is the most helpfull site nad Forum av ever bn to...... am really very gratefull
cheers

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds