|
-
July 30th, 2001, 06:29 AM
#1
Convert UNIX to DOS file
Hi,
I want to read an Input file that was generated from a UNIX system.
This is my code :
Open FicName for input as #1
Line input #1, FLigne
=> FicName (the file) and FLigne (string to hold the line read)
But when I read the first line of this file, I don't get only the first line and this give me a memory problem (too much information).
I know this is caused because some document generated from UNIX system do not terminate each line with a carriage return and a linefeed...
So I was wondering if anyone of you knows how to convert a UNIX file to a DOS format (with CR and LF...)??
I am able to convert it with an application (Ultra Edit) but I need to be able to do it in my application.
thanks a lot, really appreciate it!
Al
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|