What is the best way to open Text File -
I am processing a text file where all I need to do is read in the record and create a new output file with a new format. What is the most efficient and quickest way to process this input file, i.e. opening file, reading file, closing file, etc.
Thanks,
Jeff
Opening Text file(s) for input -
I have multiple problems with adding a text file.
I'll list off the questions by number
1. I can open a text file with multiple lines, but when it's opened in a VB text box it looks like line1|||line2||||line3|||line4.... it's not multi-lined like i want it. how do i make the t
Open a text file -
I want my application to be able to open (suppose a .txt file) when the file is double clicked on a desktop
How should I do it in my application?
(Ex... If you doubleclick txt file, it is opened in notepad, but if i want my application to open that, what should i do in the program
Openning up another form or text file -
I know this is an easy question but how do u open up another form or open a text file. See I decided to write the instructions for my program in a text file and I need a code to open that up I also need to know how to open up another form called form2 when someone clicks a certain comm
Problem when open large text file -
i make a programe which open text file then replace each char. in it with another char.
i but the text i open in a String >>>all are right but the problem appear when i open a large text file(more that 3000 lines) then i press the button to do the process but no result appea
Unable to Open RTF file.. Pls Help -
Hiiii,
I am oppening a RTF file for editing through VB and at the sametime I want to open the RTF file in a Rich text box.
But after oppening the file for Editing I am unable to open up it in the Rich Text Box.
It says "The specified Path/file name cannot be accessed or i
Open Excel From VB (to display a text file) -
I have a tab-delimited text-file which I want to allow user to view in Excel. How can i Do that?
I had a few thoughts:
1) rename the text file to .xls(i used ms-dos). Then I could open the file from VB using GetObject(). Excel opens fine. But problem is dunno how to copy or ren
closing a textfile or checking if text file is open -
i have open a text file by "open command"
I have write into it by print command
first i want to check for the file is open
if so then i want to close the text file
Creating Files then Closing connection -
i use this to make the file and that works , but anytime i try and open the file for reading it says that the file is still in use and takes a hissy fit.
Dim temp As String = filename_bx1.Text
IO.File.CreateText(temp)
and using , to open it
IO.File.Open(tem
open a text file in a text box -
This is probably a pretty simple one but....
How do I open a text file in a text box on my form?
Lets say I have a text file located at "c:\file.txt "
and when my form loads, or with my onclick event fires, open the txt file and display its contents in a text box on
Should I, or should I not leave a file open -
I think this is more a matter of taste to debate but I figure I would present the question and see what goes up the flagpole besides my shorts.
If you have a text file that, you write to every now and then from your program to keep a log of what you have done (about once every 2 sec
Can VB open attached text file -
Can VB open text file that is attached to [VB EXE[ itself?
Instead of opening a text file from the hard drive or CD,
can I attach the text file to the project/VB program and
then opens the text file inside of the EXE at run-time?
Who Has File Open -
Hi all, I'm trying to create VB code which will tell me what user on an NT 4 domain currently has a particular file open.
Can someone point me to or show me an example?
File Manager (Winfile) in NT 4 allows you to see who has a file open by first clicking on File => Properties
File Open By... -
Hi all, I'm trying to create VB code which will tell me what user on an NT 4 domain currently has a particular file open.
Can someone point me to or show me an example?
File Manager (Winfile) in NT 4 allows you to see who has a file open by first clicking on File => Properti
Read from end of text file -
I need to monitor the log output of a system. The system appends a text file every second with new data. (to the end of the file)
i want to parse this file every second and read what is logged.
i cannot however modify the file, or even copy it because the other application keep
Opening Anyfile -
I know you can open exe files by putting shell(path,vbwhatever) but can you open a lets say zip file and have it open in winzip. just like the start run does for you. Or if you open up the a txt file it will automatically start up a text veiwer with the file you opened up. I hope y
Detremine if text file open -
Hi All
How do I determine the status of a text file. Ie is the file open or not. (the text file is bieng used in a mail merge and i get an error when trying to overrite it)
text file launch -
Hi,
I need some ideas.
I have a text file with some importnat info that the program needs to run. but I will place that text file in the program app.path (which is going to be program files).
I dont want users to go in there for the text file, so i made a mene/button that when
Streaming Text -
Thanks for all the help tonight guys. I'm trying to open a text file and have portions of the text fill text controls on my form. What's the best way to go about opening a text file and having it read up to a certain point. For example here is a text file:
This is line 1 of my tex
help me with this save and open animation -
i have simple text editor, it has open file and save file menu. when I click on open or save it will bring up a open/save dialog.
I got to this part and now what I want to do is when i selet a file and open it/ or save it, it will open another form with animation( file transfer anim
having multiple text files open... -
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("MElog.txt", True)
a.writeline ("blah blah blah")
Using the above format, is it possible to open and write to another text file while the other file is still open? Or is
Open notepad and display text which isn't in a file -
How can I open notepad and display text which isn't in a file?
My prog processes an input file to create some output text.
I have a button
"open in notepad"
I want it to open notepad with the text but with no file name, as though a "new " had been selecte
File problems - open a closed file -
Hi,
I'm having some problems that maybe somebody can shed some light on. I have a text file that I read all the records from, and then I want to add further records. The file is opened in Input mode, and once all the records are read I close the file (using the Close statement) an
[2005] Opening a File -
Hello, say if i want it so when the open button is clicked and the file is selected the text in the file will be displayed inside the richtextbox.
I want the user to save a file (i set that up already)
now i want them to be able to open the saved file.
[2005] See who has file open -
Guys,
Is there a way to see firstly if a file is already open and secondly who has it open ?
This is a PDF document that will be in a server folder.
I am getting an error if I try the below and a user already has the file open. Can I force the file to close ?
If IO.File.Ex
Very strange problem regarding Open statement. -
I use the Open statement to open a text file for input. The strange part is, sometimes it can open and sometimes it can't giving me runtime error 53, file not found.
I notice that whenever i run my program (in vb development) for the first time, i could open. But when i rerun again,
VB auto splitting -
Ive had this problem for as long as Ive used VB, never could really seem to get around it so usually avoided it. Anyways, im opening a file and use the EOF command to get all the text within the file (the file type is not important, but say im opening an EXE).
Well, when opening in
opening an mdb file with an app i created -
Hi,
I created an application that can open .mdb files. What i want to happen is that when i right-click on the mdb file in windows explorer, and choose Open With .... "My App", the mdb file will open (using the app i created). Now how do i do this?
Currently, when i do t
[VB2008] Reading text file -
Hi,
I want to open and read a text file that is continuously getting text add to it by another program (basicaly a log file).
So what I want to do is this. Open the text file in read-only, go at the end of the file then check if new text is added to the file and read it in
Open Multiple Files in Open command dialog -
Hi,
Can anyone help me how to selecting/opening multiple .xls file uisng VBA then store in an array/variable each file name on by one? Im planning to create a VBA that will verify each file name that will be open.
Let say I have 10 files want to open, if the file name is not corr
check to see if file already open -
I am using vb6 and have an app that displays one unix directory and .txt files in that directory. I currently have it so I right click on a file and select open it will ftp the file down and open as a temp.txt file. I am wondering if there is a way to see if this file is open. If so
Please help working with "open with" -
Hi,
In XP When you right click on a file you see a "open with" option in the menu. Here you can select a program to open this file with.
I tried to open a text file with my VB app, but my vb app opens with a blank textbox control...
Please tell me what to add in my code
How to check if a file is open -
I need to check the staus of a file, whether its open or not,
If #1 = open then
sort of thing.
I have a loop that opens files and closes them accordinly and need to set a condtion as to whether or not to open the next file so i thought if i checked if the file was open or not.
Opening a file with its app -
I want to be able to open a file from within my VB app, based on the file's extension (e.g. if the file is file.doc,the file would open in Word). This is basically the same behavior you get if you click on a file who has his extension registered in the file types.
Shell and CreateP
How do I remove carriage returns from text file -
im getting the data from database and write to text file. as some of the fields, the user have input string with carriage return, so when i take the result and write to text file, is will look as below.
text file content:
8;testing for enter key
dhfjjf
djasjf;dafnasi
fagas
fa
Open text files in activex dll -
I'm sure it's really bad practice, but how or why can't I open plain text files with an activex dll that's running on an IIS server? It does not seem to like me accessing anything other then whats in the wwwroot.
i'm trying to open a text file in M:\PNTDATA but I get error 75 file/p
Text file question (encoding) -
Hey,
I am trying to create a plain text file using Open, Print #, Close #, etc, that I need to then open with MS Word. I can create the file no problem but I then I launch Word and open the file and Word sometimes (!) will stop and ask for the "Encoding to use for loading this
Opening with a file -
I have a program with a particular file type associated with it. Currently to open these files in my program the user must first open the program, then go to load on the menu, and select the file. Is there any way in VB to get the file to load in by just opening the file (like opening
Listview or File/Open method which is best -
I'm trying to decide to between using a listview box to load 45,000 zip-codes or should i have my open the zip-code text file grab the first entry and continously open / close the txt file cycling through all 45,000 zipcodes. Which is the better method and faster method to use. Listvie
Open and writing to text file -
Hi,
Got a question for you lovely people. `I'm currently trying to open certain parts of a text file into a text box. I'm trying to show this text in the textbox and the text can be changed if neccesary. Does anyone have an idea of how I can go about doing this or where I can find m
How to open the Help-File only once -
Hi,
I'm using a .chm type file for the HELP in my application.
I have different ways to open this file ( commandbuttons from 2 Forms and F1-key). If the Help-file is already open, a click on another Help-button or even the same one again, will open a second help-form.
Is there a way