Sign in to follow this  
D E A D L Y

Having an issue saving lines to a different line in a txt with VB console

Recommended Posts

So I have everything set up properly, In the console I can write to give me 49000+ numbers but it all saves on 1 line instead of doing multiple, im using this function:

File.AppendAllText("hits.txt", contents);

 

                Console.WriteLine(contents, "hits.txt");

 

 

Clearly it only saves to 1 line for some reason, anyone know?

 

 

Basically formate is 12digit:8digit

so basically I need it to look like this:

 

123456789123:12345678

123456789123:12345678 

123456789123:12345678

 

Rn its doing this: 123456789123:12345678123456789123:12345678123456789123:12345678123456789123:12345678123456789123:12345678123456789123:12345678

Share this post


Link to post
Share on other sites

try this

 

File.AppendAllText("hits.txt", contents + Environment.NewLine);

Share this post


Link to post
Share on other sites

try this

 

File.AppendAllText("hits.txt", contents + Environment.NewLine);

 

it worked thanks, didn't even think of that!

Share this post


Link to post
Share on other sites

try this

 

File.AppendAllText("hits.txt", contents + Environment.NewLine);

 

it worked thanks, didn't even think of that!

 

 

Sometimes the easiest solution, is the last thing on your mind

 

<3

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this