Simon
Simon

Reputation: 349

Convert dbf file to csv

Can someone help me to convert a small dbf file (113mb) to csv? I have tried virtually all the online converter available, and it either fails or says that the file is too big.

Upvotes: 0

Views: 3192

Answers (1)

reusen
reusen

Reputation: 511

This can be done using R, which is free and can be downloaded here

The R script to read the dbf file and write a csv is:

install.packages("foreign")
library(foreign)
myFolder <- "C:\\Users\\yourFileLocation\\"
myFile <- "yourFile.dbf"
df <- read.dbf(paste(myFolder,myFile,sep=""))
myCsv <- "yourCsv.csv"
write.csv(df,paste(myFolder,myCsv))

There are no file size resrictions.

Upvotes: 2

Related Questions