# Cannot remove nextLine

**URL:** https://forum.kirupa.com/t/cannot-remove-nextline/272910
**Category:** flash
**Created:** [October 9, 2008, 9:15am UTC](https://forum.kirupa.com/t/cannot-remove-nextline/272910 "2008-10-09T09:15:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dheon09](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@dheon09](https://forum.kirupa.com/u/dheon09)
#### Post date: [October 9, 2008, 9:15am UTC](https://forum.kirupa.com/t/cannot-remove-nextline/272910/1 "2008-10-09T09:15:36Z")

</div>

Need some help removing nextline after the string. Here’s the scene. I created a batch file that gets the cd-rom drive letter and save it as .txt. When I try accessing the txt file using loadVars I always get a nextline which is the problem since i’m appending it to another String. Does anyone know how to remove this nextline? I tried trimming the string but to no avail. :mu:

output:

D:/

ohmslaw.flv

which should be

D:/ohmslaw.flv

Thanks,  
Ron
