Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 00:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# Help, Reading Files

Discussion on C# Help, Reading Files within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 02/27/2010, 09:43   #16


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Unless your always going to have less than 255 words in your text file you should probably change that byte i declaration to an int.
Korvacs is offline  
Old 02/27/2010, 12:03   #17
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
I just realised I had it splitting by new lines, replace the '\n' with ' ' (or " ") if you're using my version.
tanelipe is offline  
Thanks
1 User
Old 02/27/2010, 17:24   #18
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
yah i was wondering why u were trying to split lines again
PeTe Ninja is offline  
Old 02/27/2010, 18:39   #19
 
xScott's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 322
Received Thanks: 63
yeah i wanted less then 255 lines
xScott is offline  
Old 02/27/2010, 18:42   #20
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Code:
string[] words = File.ReadAllText(@"\file.txt").Split('\n', ' ');
Edit: You might also have to remove the return character.
_tao4229_ is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Reading HP/MP/etc...
10/27/2009 - Aion - 2 Replies
Hey All, I'm sort of new to this memory offset, but I've currently got the BaseAddress of Game.dll and am looking for advice or direction in getting the target HP and stuff. I've seen the offset thread on these forums, I'm just unsure how to actually do the offset in C#. Any direction would be appreciated :)
upon reading....
07/01/2009 - Grand Chase - 23 Replies
upon reading this forum. i noticed that majority is blaming the cheater for being patch well guys i want you to under stand that game guard will always be updated every two or three weeks...
Problem when reading the downloaded files
02/26/2009 - Zero - 2 Replies
Can anyone help me after i downloaded the .rar file then ill use my winRAR to extract it all it says is ! D:\Documents and Settings\Desktop\7234d1191457676-cheat-engine-disc ussion-submission-zeroonline.rar: The archive is either in unknown format or damaged how can that be when its a small file so it wont be damaged? can anyone give me an advice. thank you Sirs..
[HELP]Writing and reading from *.ini files
02/18/2009 - CO2 Programming - 2 Replies
i was trying to do that by myself but after 3days i must say that i cant do it :mad: sooo i will be very happy if somebody could help me with it :) thanks :)
Reading and Writing .INI Files
11/16/2008 - General Coding - 2 Replies
CodeGuru: CIniFile - Class for Reading and Writing .INI Files I found this information useful for starting out on understanding more about the code for read/write ini files. Maybe this will help some others (That are willing to read) :D enjoy



All times are GMT +1. The time now is 00:44.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.