Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening txt file wraps line

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
I am using the following code to open a text file.

Open strSendFile For Append As #1 Len = 32767

The data I am putting in needs to be 1 long string of data but when I look at the file created the line wraps to a second line at character 1023.. Is there a means to prevent the line wrap?

Thanks
 
are you sure its not just notepad or wordpad that is causing the text to appear wrapped? Format > Word Wrap is not checked?

-Pete
 
I would love to have his monitor if he can get 1023 characters on one line in notepad. :)

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
I never thought of that. I can see Notepad wrapping. When I look at the file in Notepad with the Word Wrap function unchecked, I scroll over the first line and it ends at the character 1025, while in the DOS editor the last character of the first line is 1022. Is it possible that both the DOS editor and Notepad have limitations within then and will wrap automatically?
 
Yes. Notepad does have a limitation. Just tested it out, it goes to the next line automatically. Im pretty sure that its logically still on one line since there was no CrLf given.

-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top