Message 1 of 8
ignore lines of csv that contain empty cells
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm reading from a csv file into a PFlow BirthScript operator. How can I ..
1. ignore lines that contain an empty cell or a specific character
2. alternatively just place a zero in the empty cell and read the line anyway
Thanks
filename = "C:\XXXX.csv"
FP = openfile filename
while eof(FP) == false do
(
numA = (readDelimitedString FP ",") as integer
numB = (readDelimitedString FP ",") as float
numC = (readLine FP) as float
)