|
|
 |
| 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

June 16th, 2004, 07:42 AM
|
|
Registered User
|
|
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
-=-=-=-=-=-=-=-=-=-
LordBeholdeR
__________________
-=-=-=-=-=-=-=-=-=-
LordBeholdeR
|

June 25th, 2004, 02: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....
|

June 25th, 2004, 06:50 PM
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |