Reading lines in a text field

Reading lines in a text field

Post by Kevin Car » Sun, 13 Jun 2004 08:33:32


I am using Flash 5 becasue I want to be able to write and read text files to
a hard drive.

I can write a text field with multiple lines into a variable, and import the
variable with all of it's lines intact. What I want to know is how can
Flash 5 can read a given line.

For example:
apple
oranges
grapes

How do I get line 2 "oranges: out of this field?

I'm using lines in a field instead of arrays because it's not saving the
array to a text field.

Thanks for any help.

Kevin
 
 
 

1. How to read a text file line by line and remove some line

2. Copy all data from a:Class A's fields to the namesake fields of b:Class B.

I have two class with nearly exactly same attributes, the only difference is
class B's property setter does some argument checking.

[Serializable]
class A
{
private string a;

public string AA
{
get { return a; }
set { a = value; }
}
}

[Serializable]
class B
{
private string a;

public string AA
{
get { return a; }
set
{
if (string.IsNullOrEmpty(value))
{
throw new ApplicationException();
}
a = value;
}
}
}

I want to do the following:
A a = new A();
a.AA = "123123";
B b = (B)a; -- Copy a's attribute values to b.
Please tell me how to implement a generic function to support copying
namesake fields from one class instance to another even when they belongs to
different class type.

Thanks.

zlf

3. How to store/read listbox items in a text file line by line (with line break) ?

4. READ TEXT FILE LINE BY LINE AND STORE ALL LINES IN ARRAY...

5. read history items of a Multiple Lines of Text field?

6. Multi-line, read-only, deleteable text (form field?)

7. Reading Text File, Text Scrolling and erase line from a text file

8. Read a line, read the next line...then read it again

9. Does 'Read Lines' option for 'Read from Text File' function work on PDA?

10. Fill Ins+Selecting same line of text

11. Reading line by line from a text file in C#

12. Textbox-read text line by line

13. reading a line by line from local text file through WATI

14. reading a line by line from local text file through WATIR

15. Reading line by line in a large text file