Guest User

example_csv_process_folder

a guest
Mar 27th, 2016
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. str path="d:\test" ;; WHAT DIRECTORY TO PROCESS
  2.  
  3. ;; Declare your ICSV object
  4. ICsv list_csv
  5. list_csv=CreateCsv()
  6. list_csv.Separator=";" ;; Because we are loading a .csv file, we MUST indicate what the seperator is
  7.  
  8.  
  9. The directory to be processed is processed in the following way:
  10. - Only files
  11. - Only in this folder and subfolders
  12. If you want to set it up differently, then use the above toolbar (top right)
  13. Click on yellow folder icon with magnifying icon on it (Files, web) and select 'Enumerate files'
  14.  
  15. Dir d
  16. foreach(d F"{path}\*.csv" FE_Dir 4)
  17. str path=d.FullPath
  18. str name=d.FileName
  19. list_csv.FromFile(path)
  20.  
  21. ... FROM HERE LOOK AT PREVIOUS EXAMPLE!
Advertisement
Add Comment
Please, Sign In to add comment