473,378 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Output text file End of File Error 62

Hi, I apologize if this question has been asked already. I have searched with no luck. I am trying to output a specifically formatted text file and then change the extension to another program type:

outputting .txt changing to .dva (DVDAuthorGUI cue file).

The .txt output format looks the same as a DVDAuthorGUI created file, but when I try to open the file in DVDAuthroGUI, I get an END OF FILE Error 62. I must be missing something in my code... Here is what I have:

Expand|Select|Wrap|Line Numbers
  1. string text = "DVDAuthorGUI 1.017 - 2/16/2009\n" +
  2.                "C:\\Documents and Settings\\Administrator\\Desktop\\hey.mpg\n" +                               
  3.                "C:\\Documents and Settings\\Administrator\\Desktop\\trial.mpg\n" +                 
  4.                "C:\\Documents and Settings\\Administrator\\Desktop\\trial1.mpg\n" +
  5.                "***\n" +
  6.                "00:00:00.00\n" +
  7.                "00:00:00.00\n" +
  8.                "00:00:00.00\n" +
  9.                "***\n" +
  10.                "0\n" +
  11.                "0\n" +
  12.                "0\n" +
  13.                "***\n" +
  14.                "***\n" +
  15.                "***\n" +
  16.                "***\n" +
  17.                "***\n" +
  18.                "***\n" +
  19.                "<none>\n" +
  20.                "<none>\n" +
  21.                "<none>\n" +
  22.                "***\n" +
  23.                          "center,bottom,60,60,30,30,28.0,arial.ttf,720,478,29.97,ISO-8859-1,FFFFFF:A0A0A0:808080|\n" +
  24.                            "center,bottom,60,60,30,30,28.0,arial.ttf,720,478,29.97,ISO-8859-1,FFFFFF:A0A0A0:808080|\n" +
  25.                            "center,bottom,60,60,30,30,28.0,arial.ttf,720,478,29.97,ISO-8859-1,FFFFFF:A0A0A0:808080|\n" +
  26.                 "***\n" +
  27.                 "<default>\n" +
  28.                 "NTSC\n" +
  29.                 "True\n" +
  30.                 "False\n";
  31.  
  32. System.IO.File.WriteAllText(@"C:\Documents and Settings\Administrator\Desktop\trial.dva", text);  
Thank you for any help you can give me.

Dan
Sep 13 '09 #1
7 2762
tlhintoq
3,525 Expert 2GB
The .txt output format looks the same as a DVDAuthorGUI created file,
Looks the same... Using what program to read it? If the file contains some non-text characters, binary data etc and you are trying to read it with a simple text editor then those non-text items are most likely getting stripped away.

Personally I would write a little routine to read the source file as a stream of bytes and then compare a 'real' file to one of your manufactured files byte by byte.
Sep 13 '09 #2
tlhintoq
3,525 Expert 2GB
TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.
Sep 13 '09 #3
Yeah, I was using a simple text editor to compare the files. Hmm, i don't think I would know how to do your suggestion but I will look into it. Thank you. Thanks for the tip too.
Sep 13 '09 #4
If you could send me your sample dva file, I can debug it for you. My email address in on DVDAuthorGUI's Homepage.
Sep 13 '09 #5
Thanks! I'll do that, I appreciate it!
Sep 13 '09 #6
Actually, I was just looking over what you had written. You probably need to send an \r\n, instead of just \n. If this doesn't help you, again, feel free to email your sample file.
Sep 13 '09 #7
wow, i feel dumb! Thanks a lot! That worked great!!!
Sep 13 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: rossum | last post by:
I have been looking at exceptions as I need to get better at using them. I came across an interesting effect, demonstrated below. When I ctrl-Z the input to throw an ios_base::failure, the...
6
by: Wescotte | last post by:
I'm writing a tiny php app that will log into our bank of america account and retrieve a file containing a list of checks that cleared the previous day. The problem I'm running into is when I...
3
by: Jorge Cecílio | last post by:
Hi! I would like to export some MS-Access reports output to pdf. However, the only possibility offered by Access (afaik) for me to export formatted output is snp (snapshot) (I use MS-Office...
3
by: Blankdraw | last post by:
I'm getting NO errors and 2 warnings with this code. I thought I was ready to write the output-formatting segment, but may be way off the mark now. The warnings say that "OPEN() and READ() are...
6
by: Alec MacLean | last post by:
Hi, I've created a small application for our company extranet (staff bulletins) that outputs a list of links to PDF's that are stored in a SQL table. The user clicks a link and the PDF is...
14
by: dawnerd | last post by:
Hi, I am developing a CMS and came across something which has never happened to me before, and I re-wrote the specific script twice, both differently, and still had the same error. I'm not sure...
4
by: ed | last post by:
Hi all, I'm very new to vb (2nd day) and I need to create a small app that will replace my old batch file with a flashy gui. I had some experience with access 2.0 which helps ;) What I would...
6
by: cfish | last post by:
I'm trying to script my contact page and I have everything the way I want it however I cannot get my script to output Address, City, State, Zip & Phone Number when I get a email. It will output...
19
by: Chad | last post by:
Okay, let's say I have an exotic os that limits how much goes to stdout. When I go like.. #include <stdio.h> int main(void) { int i=0; for(i=0; i< 10; i++) { printf("a \n");
11
by: JRough | last post by:
I'm trying to use output buffering to cheat so i can print to excel which is called later than this header(). header("Content-type: application/xmsdownload"); header("Content-Disposition:...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.