Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 16th, 2004, 06:42 AM
Registered User
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading ASCII data from text file.

I am having a problem with reading ASCII text from a text document. I have a document with a random piece of writing in, and i have tried using Input and Line Input. I load the text into a string, then carry out the rest of my code, which prints the new data of the same length (old data but encrypted) back to the file. When i try to run the encrypted data back through the code, only half of the data is loaded into hte string, for some reason, it stops at this character " ". That is the character after the last character loaded which is an underscore. The total length of the loaded information is 179 characters and it appears to have been written back to the text file in four lines rather than 1 long one. If anybody could enlighten me as to what the problem may be i would be extremely grateful. Thank you

Reply With Quote
  #2 (permalink)  
Old June 25th, 2004, 01:32 AM
Authorized User
Join Date: Jun 2004
Location: Islamabad, Sindh, Pakistan.
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts

Can you post your code ? . I think problem is there....
Reply With Quote
  #3 (permalink)  
Old June 25th, 2004, 05:50 PM
tnd tnd is offline
Authorized User
Join Date: Jun 2004
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts

The problem is probably with your encrypted code. Probably one of the encrypted character is char(26) which is the eof marker so input and line input won't read past this character.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Text file from Resource folder balesh.mind ASP.NET 3.5 Basics 1 November 14th, 2008 06:54 AM
Reading from a Text file for Login and Password.. zabzoub1 Pro Visual Basic 2005 2 July 4th, 2007 01:03 PM
Write ASCII text file muklee C# 1 December 12th, 2004 09:40 PM
Reading a Text File gmoney060 Classic ASP Basics 2 October 30th, 2004 01:43 AM
reading text file Regornil JSP Basics 2 October 27th, 2004 02:02 AM

All times are GMT -4. The time now is 06:02 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.