473,378 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

table linked to text file producing extra rows

A friend's unix application produces various reports daily as flat
text files.

I link these files as tables in an Access (2000) database.

After linking, all of these reports begin with a blank row; no
problem.

But the latest report I've asked, once linked, creates not only a
blank row at the beginning, but a blank row after every row with data.

I suppose I could live with this, but I'd sure like to understand why
this is happening and how/if I can do something in the link
specification to prevent this from happening.

Thanks for any ideas.

Larry Rekow
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
Nov 13 '05 #1
2 1798
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Linux (*nix) text files end each paragraph (or row) with a line-feed
(Lf). Window/DOS text files use a carriage-return/line-feed combination
(CrLf). You'll have to change the files before importing them.

Your friend may be able to save the file as a DOS file. I can't
remember the command, but I know there are utilities in Linux releases
that do that conversion.

Also, there are many *nix to DOS file conversion programs on the web.
Google for "unix2dos" or "u2d" or "unix to dos" or something along those
lines.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA+AwUBQRPbAoechKqOuFEgEQL/1QCY61NlzBVjCAK/W8uBuwdzT3eFKgCeNuPX
xE+dmUiJ4qAPDMIDqPkdiUo=
=9Kt6
-----END PGP SIGNATURE-----
Larry Rekow wrote:
A friend's unix application produces various reports daily as flat
text files.

I link these files as tables in an Access (2000) database.

After linking, all of these reports begin with a blank row; no
problem.

But the latest report I've asked, once linked, creates not only a
blank row at the beginning, but ablankrowaftereveryrowwithdata.

I suppose I could live with this, but I'd sure like to understand why
this is happening and how/if I can do something in the link
specification to prevent this from happening.


Nov 13 '05 #2
On Fri, 06 Aug 2004 19:24:58 GMT, MGFoster <me@privacy.com> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Linux (*nix) text files end each paragraph (or row) with a line-feed
(Lf). Window/DOS text files use a carriage-return/line-feed combination
(CrLf). You'll have to change the files before importing them.

Your friend may be able to save the file as a DOS file. I can't
remember the command, but I know there are utilities in Linux releases
that do that conversion.

Also, there are many *nix to DOS file conversion programs on the web.
Google for "unix2dos" or "u2d" or "unix to dos" or something along those
lines.

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++
Many thanks for you ideas. Indeed, this is the problem, but it
appears that I accidentally caused it myself.

i run a batch file on the windows box that is timed to automatically
ftp the report from the unix box each day after the report is run.

in my script, I left out the word "binary"; I had used this script to
fetch other text files successfully, but thought that, since the file
was text, the binary switch was not needed. I put the word "binary"
back into the script, and it all now works flawlessly.

Larry Rekow
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Leszek Dubiel | last post by:
---------------------------------------- BACKGROUND: My company (www.glass.biz) keeps information about products in a network-shared (samba) filesystem. Each product has assigned to it...
0
by: Jim Moseby | last post by:
I stumbled across this while trying to update a table with a timestamp type column. At the time, I didn't know that the timstamp column would update itself when a row was changed. A kind gentleman...
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
5
by: mm nn | last post by:
Hi, I want to create a table like this: ID Autonum Datefld Date Cat Text Itm Text tCount Number
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
15
by: Killer42 | last post by:
Hi all. Ok, I'm using VB6 but I think the answer to this (if there is one) is more likely to be found in the Access forum. I have a situation where I've got tens of millions of records, spread...
0
by: Romulo NF | last post by:
Greetings again everyone Recently i´ve been asked to develop a script to allow filtering in the content of the table, with dinamic options based on the own content. Example: a table with the name of...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
2
by: TG | last post by:
Hi! I am trying to export only the visible columns from a datagridview in my windows form in VB 2008. Should't it be no comma after the first row where the headers are? Also should...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.