[b][red]This message was edited by Niux at 2005-6-30 8:18:1[/red][/b][hr]
hey! i just finished my first VB book, and wanted to do something my self, so i started a little game projekt..
anyways, i have some problems:
i got i txt file with some data, looks like this:
some computers name
some other computers name
so now my problem is, how to i read every 2nd line in a text file?
i read a file like this:
do while EOF(1) = false
line input #1
and is it possible to adress the diffent lines i read to diffent places in a Type?
how to delete a line from a file? - if got some code that searches for a string in a file, but dont know how to delete that string when its found. (and it gotta move up the line after the one deleted, so i dont get something like this:
with empty lines in my file)
i have a txtfield in witch i type commands - in my program - and atm i type in the command and click on a button, and then the program gets the vaule of the txtfield. i want it to get the value when i hit Enter and keep focus in the txtfield, but how?
thx for the help,