csv

Append data to a .csv File using C#

The following code writes the data and is working fine, but I want to add more than one client (maybe 10) in the .csv file. How can I achieve this. Thanks in advance. private void createFileButton_Click(object sender, EventArgs e) { string newFileName = "C:\\client_20100913.csv"; string clientDetails = clientNameTextBox.Text ...

importing .csv files into SQlite through objective C

Hello everyone, I am able to import .csv files into a SQlite table through the command line. It works nice and fine. What i wanted to know was is it possible to do the exact same thing through Objective C code..meaning execute commands like .mode csv && .import file.csv table. The interface sqlite3 does all normal SQL statement executio...

How to import multiline CSV in SAS

I got a file in this format. abc;def;"ghi asdasd asdasd asd asd aas d " Now I want to import it with SAS. How do I handle the multiline values? ...

How do I create a CSV file from database in Python?

I have a Sqlite 3 and/or MySQL table named "clients".. Using python 2.6, How do I create a csv file named Clients100914.csv with headers? excel dialect... The Sql execute: select * only gives table data, but I would like complete table with headers. How do I create a record set to get table headers. The table headers should come dir...

Efficiently convert a SAS dataset into a CSV

Hi, Can anyone tell me what is the fastest way to programmatically convert a SAS dataset into a CSV file. I know I can use a data step and output to a file etc. But is that the only way? Thanks, Adnan. ...

UIPickerView - store contents in file

I have a UIPickerView which I want to initialise with a large amount of data. The easiest way to maintain this data is in a spreadsheet, and so I have saved it as a CSV. Unfortunately, I am having a lot of difficulty reading this file. (I have read a lot of documents on how to do it, but it just won't read the file. It say's its null.) W...

Linux utility to convert opendocument to csv

Does anyone know of a Linux command line utility to convert OpenDocument Spreadsheets (e.g. oocalc files) into a csv file? Preferably without dependency to OpenOffice. ...

Using awk create two arrays from two column values, find difference and sum differences, and output data

I have a file with the following fields (and an example value to the right): hg18.ensGene.bin 0 hg18.ensGene.name ENST00000371026 hg18.ensGene.chrom chr1 hg18.ensGene.strand - hg18.ensGene.txStart 67051161 hg18.ensGene.txEnd 67163158 hg18.ensGene.exonStarts 67051161,67060631,67065090,67066082,67071855,67072261,67073896,67075980,67078739...

Export to csv ExtJS

I'm trying to export data to csv format. I use ExtJS 3.2.1 The code is as follows: this.getEl (). child ('a', true). href = 'data: text / csv; filename = datos.csv; charset = UTF-8 2CPrice% Company% 2CChange% 2C% 25% 20Change% 2CLast% 20Updated% 0d% 0a3m% 20Co, 71.72,0.02,0.03, Wed% 20Sep% 2001% 202010% 2000% 3A00% 3A00% 20GMT% 2B0200% ...

Unicode in CSV file?

I need to generate a CSV file. Maybe i am 'doing it wrong' because i am dumping the file with my own code instead of using a lib but anyways. It looks like i have everything right. Quotes, commas and everything seems to be escaped perfectly. It was rather easy. The problem is i am using unicode strings to test and they come out as ????....

svnadmin not recognized

I'm attempting to do a repo dump from cli. I have both tortoisesvn (gui) and the CollabNet SVN CLI installed (why? because I'm stupid). Anyway, when I do the svnadmin dump command, it says svnadmin isn't a recognized command. What would be the cause of this? The svn repo is hosted with unfuddle if that makes any difference. I'm still p...

Parsing a comma separated file using powershell

I have a text file which contains several lines, each of which is a comma separated string. The format of each line is: <Name, Value, Bitness, OSType> Bitness and OSType are optional. For example the file can be like this: Name1, Value1, X64, Windows7 Name2, Value2, X86, XP Name3, Value3, X64, XP Name4, Value3, , Windows7 Name4, Va...

Search line in *.CSV-

I can't belive, the easiest task won't work! I just want to loop through a csv file by using the StreamReader-Class and find a key in a associative line. e.g.: key1;value1 key2;value2 key3;value3 If the key exists, no problems. Otherwise EOF should be reached, but it does not work! If I discard the buffered data, EOF will be reach...

Most succinct way to transform a CSV string to an table in TSQL?

-- Given a CSV string like this: declare @roles varchar(800) select @roles = 'Pub,RegUser,ServiceAdmin' -- Question: How to get roles into a table view like this: select 'Pub' union select 'RegUser' union select 'ServiceAdmin' After posting this, I started playing with some dynamic SQL. This seems to work, but seems like there...

Reading large csv files

Which is the most performant way to read a large csv file in .NET? Using FileStream? or another class? Thanks! ...

import csv/excel file into magento database

hello all I just want to ask .... is there any method or tool by which csv/excel file of products can be directly imported to magento database? I have no idea about it .. Thanks! Richa ...

Use of csv with php

Hi, I have a requirement where I need to work my login form logic using a csv file. 'A' column in csv file has all Usernames and 'T' column has website names. Now the user logs in by typing in their usernames, and depending on that I have to redirect them to the website entered in column T. How will I use php to accompalish this? A ...

How do I scan a directory for csv files, for a parser I wrote in asp.net?

Hi, I have a parser function written in my code-behind file, that takes as input the filename of a csv file, and parses the data accordingly. In the current scenario, I am supplying the name of the csv file. In a newer scenario, I would like to scan a particular local directory for csv files, and pass all of them to the parser function...

Password protect a CSV file

Hi, I am using a csv file to authenticate user login. Is it possible to password protect the CSV file? I do not want anybody to be able to download the csv file through url. I googled and I found out that it is not possible to password protect a csv file. Is there any other way I can password protect the file? ...

Verifying a CSV file is really a CSV file

I want to make sure a CSV file uploaded by one of our clients is really a CSV file in PHP. I'm handling the upload itself just fine. I'm not worried about malicious users, but I am worried about the ones that will try to upload Excel workbooks instead. Unless I'm mistaken, an Excel workbook and a CSV can still have the same MIME, so ch...