Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Import from a sequential with no CR or LF
Message
From
07/01/2003 03:27:51
 
 
To
07/01/2003 03:09:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00738661
Message ID:
00738672
Views:
16
The closest I can think of is ALINES() but this requires some sort of delimiter between the records. It doesnt have to be CR+LF but it must be some char that ALINES() can use to seperate the records.

>Thank you for the reply,
>but is there a command to split a long string into an array based on the length of the line that you want to make ??
>
>Dimitris
>
>>Dimitris,
>>
>>Amongst other solutions: You could use FILETOSTR() to read the file into a variable and then use a loop to cut the string into the fixed length records you require.
>>
>>>Is there any quick way to import an ascii file which has no Line Feeds or Carriage Returns for separating each record but the records are fixed length, into a table?
>>>
>>>Thank You
>>>
>>>Dimitris
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform